build: fix some warnings
Fix a couple of warnings:
-Werror=unused-parameter
so we can use meson's warning_level=3 and -Werror without build
failures.
Change-Id: I14487a56727469f6bda1cabccce8241ac1acb149
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/monitor.cpp b/monitor.cpp
index caab61b..e2e912a 100644
--- a/monitor.cpp
+++ b/monitor.cpp
@@ -33,8 +33,7 @@
using namespace phosphor::logging;
// Callback handler when there is an activity on the FD
-int Monitor::processEvents(sd_event_source* es, int fd, uint32_t revents,
- void* userData)
+int Monitor::processEvents(sd_event_source*, int, uint32_t, void* userData)
{
log<level::INFO>("GPIO line altered");
auto monitor = static_cast<Monitor*>(userData);
diff --git a/presence/gpio_presence.cpp b/presence/gpio_presence.cpp
index 4326602..d2d2892 100644
--- a/presence/gpio_presence.cpp
+++ b/presence/gpio_presence.cpp
@@ -81,8 +81,7 @@
}
// Callback handler when there is an activity on the FD
-int Presence::processEvents(sd_event_source* es, int fd, uint32_t revents,
- void* userData)
+int Presence::processEvents(sd_event_source*, int, uint32_t, void* userData)
{
auto presence = static_cast<Presence*>(userData);
diff --git a/test/utest.cpp b/test/utest.cpp
index 5fb870f..8e0091e 100644
--- a/test/utest.cpp
+++ b/test/utest.cpp
@@ -53,8 +53,7 @@
}
// Callback handler on data
- static int callbackHandler(sd_event_source* es, int fd, uint32_t revents,
- void* userData)
+ static int callbackHandler(sd_event_source*, int, uint32_t, void*)
{
std::cout << "Event fired" << std::endl;
completed = true;