From 0edd3ca7780350e672c966387c34a93aad72f09f Mon Sep 17 00:00:00 2001 From: John Polstra Date: Sat, 4 Sep 1999 20:36:27 +0000 Subject: [PATCH] Enable -Wformat checking for debug_printf(). --- libexec/rtld-elf/debug.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libexec/rtld-elf/debug.h b/libexec/rtld-elf/debug.h index 8d57ec7930ab..b3563386eaff 100644 --- a/libexec/rtld-elf/debug.h +++ b/libexec/rtld-elf/debug.h @@ -36,7 +36,9 @@ #error "This file must be compiled with GCC" #endif -extern void debug_printf(const char *, ...); +#include + +extern void debug_printf(const char *, ...) __printflike(1, 2); extern int debug; #ifdef DEBUG