diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-08-31 19:15:33 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-08-31 19:15:33 +0000 |
commit | cf95c8c295b5caf426abd71c9e1db69020e1ea72 (patch) | |
tree | da00901136ef14050b91a4e4e6d32a211af185e6 /mp_msg.h | |
parent | 2c7af5e146de97edb8ef752e2fe886e6c50eff55 (diff) | |
download | mpv-cf95c8c295b5caf426abd71c9e1db69020e1ea72.tar.bz2 mpv-cf95c8c295b5caf426abd71c9e1db69020e1ea72.tar.xz |
Handle mp_msg like printf so compiler can report if missing/too much arguments or other errors happen. GCC only
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10737 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp_msg.h')
-rw-r--r-- | mp_msg.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |