Suppress unused warning

This commit is contained in:
xenia 2018-10-18 12:39:29 -04:00
parent 2468aa75e6
commit c98d1da8fc
1 changed files with 4 additions and 0 deletions

View File

@ -8,12 +8,16 @@ namespace h804 {
void daemon_notify_ready() { void daemon_notify_ready() {
#ifdef H804_SYSTEMD_ENABLE #ifdef H804_SYSTEMD_ENABLE
sd_notify(0, "READY=1"); sd_notify(0, "READY=1");
#else
(void)args;
#endif #endif
} }
void daemon_notify(const std::string& args) { void daemon_notify(const std::string& args) {
#ifdef H804_SYSTEMD_ENABLE #ifdef H804_SYSTEMD_ENABLE
sd_notify(0, args.c_str()); sd_notify(0, args.c_str());
#else
(void)args;
#endif #endif
} }