diff --git a/main/sd_notify.h b/main/sd_notify.h index a5c9d62ce..6ce1189e9 100644 --- a/main/sd_notify.h +++ b/main/sd_notify.h @@ -4,4 +4,5 @@ #pragma once // Implement the systemd notify protocol without external dependencies. -int sd_notifyf(int unset_environment, const char *format, ...); +int sd_notifyf(int unset_environment, const char *format, ...) + __attribute__((format(printf, 2, 3), weak));