From befd75ebbf7fe3b0ce5b91a82bc232e84fc5d3fc Mon Sep 17 00:00:00 2001
From: gcontini <1121667+gcontini@users.noreply.github.com>
Date: 摹曛, 20 5月 2021 10:58:02 +0800
Subject: [PATCH] fix mingw tests

---
 src/library/hw_identifier/hw_identifier_facade.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/library/hw_identifier/hw_identifier_facade.cpp b/src/library/hw_identifier/hw_identifier_facade.cpp
index a64ba58..193dfab 100644
--- a/src/library/hw_identifier/hw_identifier_facade.cpp
+++ b/src/library/hw_identifier/hw_identifier_facade.cpp
@@ -29,6 +29,7 @@
 		result = strategy->validate_identifier(pc_id);
 	} catch (logic_error& e) {
 		LOG_ERROR("Error validating identifier %s: %s", str_code.c_str(), e.what());
+		((void)(e));
 	}
 	return result;
 }
@@ -52,6 +53,7 @@
 	unique_ptr<IdentificationStrategy> strategy_ptr = IdentificationStrategy::get_strategy(strategy);
 	HwIdentifier pc_id;
 	FUNCTION_RETURN result = strategy_ptr->generate_pc_id(pc_id);
+	pc_id.set_use_environment_var(use_env_var);
 	if (result != FUNC_RET_OK) {
 		throw logic_error("strategy " + to_string(strategy_ptr->identification_strategy()) + " failed");
 	}

--
Gitblit v1.9.1