summaryrefslogtreecommitdiffstats
path: root/mp_msg.h
diff options
context:
space:
mode:
Diffstat (limited to 'mp_msg.h')
-rw-r--r--mp_msg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mp_msg.h b/mp_msg.h
index 7f6e2ce157..c398e1acc5 100644
--- a/mp_msg.h
+++ b/mp_msg.h
@@ -107,9 +107,8 @@ int mp_msg_test(int mod, int lev);
#define mp_gettext(String) String
#endif
-void mp_msg_c( int x, const char *format, ... );
-
#ifdef __GNUC__
+void mp_msg_c( int x, const char *format, ... ) __attribute__ ((format (printf, 2, 3)));
#define mp_msg(mod,lev, args... ) mp_msg_c(((mod)<<8)|(lev), ## args )
#ifdef MP_DEBUG
@@ -119,6 +118,7 @@ void mp_msg_c( int x, const char *format, ... );
#define mp_dbg(mod,lev, args... )
#endif
#else // not GNU C
+void mp_msg_c( int x, const char *format, ... );
#define mp_msg(mod,lev, ... ) mp_msg_c(((mod)<<8)|(lev), __VA_ARGS__)
#ifdef MP_DEBUG