meson: fix up compile errors found by meson
meson enables more error checking by default so in preperation for
moving to it, fix all errors in the code it has found.
This breaks down into the following issues:
- Unused variables: remove where applicable, otherwise void out
- Extra ';'
- Local includes need to use ""
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I94d9b4d2ffc85ae46d941e1a190fafd4ba5bd893
diff --git a/host_check_main.cpp b/host_check_main.cpp
index b9f5327..56b22fb 100644
--- a/host_check_main.cpp
+++ b/host_check_main.cpp
@@ -7,7 +7,7 @@
#include <sdbusplus/exception.hpp>
#include <phosphor-logging/log.hpp>
#include <xyz/openbmc_project/Control/Host/server.hpp>
-#include <config.h>
+#include "config.h"
using namespace std::literals;
using namespace phosphor::logging;
@@ -29,6 +29,9 @@
static int hostControlSignal(sd_bus_message* msg, void* userData,
sd_bus_error* retError)
{
+ // retError and userData are not used
+ (void)(retError);
+ (void)(userData);
std::string cmdCompleted{};
std::string cmdStatus{};
@@ -107,7 +110,7 @@
return;
}
-int main(int argc, char* argv[])
+int main()
{
log<level::INFO>("Check if host is running");