From c98d1da8fc55795d99316c7218bedefd63965593 Mon Sep 17 00:00:00 2001 From: haskal Date: Thu, 18 Oct 2018 12:39:29 -0400 Subject: [PATCH] Suppress unused warning --- common.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common.cpp b/common.cpp index 0e4392e..f75a00a 100644 --- a/common.cpp +++ b/common.cpp @@ -8,12 +8,16 @@ namespace h804 { void daemon_notify_ready() { #ifdef H804_SYSTEMD_ENABLE sd_notify(0, "READY=1"); +#else + (void)args; #endif } void daemon_notify(const std::string& args) { #ifdef H804_SYSTEMD_ENABLE sd_notify(0, args.c_str()); +#else + (void)args; #endif }