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 }