[FFmpeg-cvslog] avcodec/internal: silence -Wempty-body on clang

Ganesh Ajjanagadde git at videolan.org
Sat Sep 19 11:42:56 CEST 2015


ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Sat Sep 19 00:55:18 2015 -0400| [4e2471ef1d98b9b34e80b0b0c6fa4b8fb2f2dc19] | committer: Michael Niedermayer

avcodec/internal: silence -Wempty-body on clang

This silences a -Wempty-body warning on clang 3.7+, e.g
http://fate.ffmpeg.org/log.cgi?time=20150918181527&log=compile&slot=x86_64-darwin-clang-polly-vectorize-stripmine-3.7.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4e2471ef1d98b9b34e80b0b0c6fa4b8fb2f2dc19
---

 libavcodec/internal.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 89f5aa2..fbee411 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -57,7 +57,7 @@
 #ifdef TRACE
 #   define ff_tlog(ctx, ...) av_log(ctx, AV_LOG_TRACE, __VA_ARGS__)
 #else
-#   define ff_tlog(ctx, ...) while(0)
+#   define ff_tlog(ctx, ...) while(0) {}
 #endif
 
 



More information about the ffmpeg-cvslog mailing list