From 65d46d7e0123cf42b5c98f633bd41c90acaa180d Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Fri, 21 Apr 2006 23:15:44 +0000 Subject: Add printf format attributes. CVS patchset: 7977 CVS date: 2006/04/21 23:15:44 --- src/libffmpeg/libavcodec/interplayvideo.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/libffmpeg/libavcodec') diff --git a/src/libffmpeg/libavcodec/interplayvideo.c b/src/libffmpeg/libavcodec/interplayvideo.c index 73165e795..588485a0a 100644 --- a/src/libffmpeg/libavcodec/interplayvideo.c +++ b/src/libffmpeg/libavcodec/interplayvideo.c @@ -49,7 +49,11 @@ #if DEBUG_INTERPLAY #define debug_interplay(x,...) av_log(NULL, AV_LOG_DEBUG, x, __VA_ARGS__) #else -static inline void debug_interplay(const char *format, ...) { } +static inline void +#ifdef __GNUC__ +__attribute__ ((__format__ (__printf__, 1, 2))) +#endif +debug_interplay(const char *format, ...) { } #endif typedef struct IpvideoContext { -- cgit v1.2.3