fix compile warning when meson build
- Fix compile warning:
[-Werror=unused-variable], [-Werror=sign-compare] and
deprecated INSTANTIATE_TEST_CASE_P
Signed-off-by: Harvey.Wu <Harvey.Wu@quantatw.com>
Change-Id: If8713f0b938cd5306bbe19a9078731db0c3667dc
diff --git a/test/dbus_active_unittest.cpp b/test/dbus_active_unittest.cpp
index 3f06c96..c9f663e 100644
--- a/test/dbus_active_unittest.cpp
+++ b/test/dbus_active_unittest.cpp
@@ -42,8 +42,9 @@
std::string service = "asdfasdf.asdfasdf";
EXPECT_CALL(*helper, getProperties(service, path, NotNull()))
- .WillOnce(Invoke([&](const std::string& service,
- const std::string& path, SensorProperties* prop) {
+ .WillOnce(Invoke([&]([[maybe_unused]] const std::string& service,
+ [[maybe_unused]] const std::string& path,
+ SensorProperties* prop) {
prop->scale = -3;
prop->value = 10000;
prop->unit = "x";