Suppress unused warning
This commit is contained in:
parent
2468aa75e6
commit
c98d1da8fc
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue