Index: daemon.h =================================================================== --- daemon.h.orig +++ daemon.h @@ -3,15 +3,15 @@ void daemon_cleanup(void); void #ifdef HAVE_ATTRIBUTE_NORETURN __attribute__((noreturn)) #endif -pabort (const char *fmt, ...); +pabort (const char *fmt, ...) __attribute__((__format__(printf,1,2))); void #ifdef HAVE_ATTRIBUTE_NORETURN __attribute__((noreturn)) #endif -perr (const char *fmt, ...); +perr (const char *fmt, ...) __attribute__((__format__(printf,1,2))); extern int daemon_debug; extern int daemon_foreground; Index: panic.h =================================================================== --- panic.h.orig +++ panic.h @@ -24,11 +24,13 @@ __attribute__((noreturn)) panic(char *a); void #ifdef HAVE_ATTRIBUTE_NORETURN __attribute__((noreturn)) #endif -perr(const char *a, ...); +perr(const char *a, ...) +__attribute__((__format__(printf,1,2))) +; void #ifdef HAVE_ATTRIBUTE_NORETURN __attribute__((noreturn)) #endif usage(void);