Fix issues flagged by werror
This fixes the issues that are flagged by werror in preparation
for enabling a meson build.
Change-Id: Icf05316d21390188f84da5b59f97319e3718e728
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
diff --git a/src/power_control.cpp b/src/power_control.cpp
index 92ebb9d..950df47 100644
--- a/src/power_control.cpp
+++ b/src/power_control.cpp
@@ -1099,7 +1099,7 @@
try
{
gpioLine.request(
- {"power-control", gpiod::line_request::EVENT_BOTH_EDGES});
+ {"power-control", gpiod::line_request::EVENT_BOTH_EDGES, {}});
}
catch (const std::exception&)
{
@@ -1137,8 +1137,8 @@
// Request GPIO output to specified value
try
{
- gpioLine.request({__FUNCTION__, gpiod::line_request::DIRECTION_OUTPUT},
- value);
+ gpioLine.request(
+ {__FUNCTION__, gpiod::line_request::DIRECTION_OUTPUT, {}}, value);
}
catch (const std::exception&)
{
@@ -2225,12 +2225,11 @@
}
}
-static void hostMiscHandler(sdbusplus::message::message& msg)
+[[maybe_unused]] static void hostMiscHandler(sdbusplus::message::message& msg)
{
std::string interfaceName;
boost::container::flat_map<std::string, std::variant<bool>>
propertiesChanged;
- bool pltRst;
try
{
msg.read(interfaceName, propertiesChanged);