[FFmpeg-cvslog] log: Use a do {} while (0) for dlog

Luca Barbato git at videolan.org
Tue Dec 8 10:06:43 CET 2015


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Sat Dec  5 13:45:01 2015 +0100| [6788baebb3680d447eabdadf3f5743c8470a4611] | committer: Luca Barbato

log: Use a do {} while (0) for dlog

Avoid the warning `-Wempty-body`.

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

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

diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 500511d..adec523 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -57,7 +57,7 @@
 #ifdef DEBUG
 #   define ff_dlog(ctx, ...) av_log(ctx, AV_LOG_DEBUG, __VA_ARGS__)
 #else
-#   define ff_dlog(ctx, ...) while(0)
+#   define ff_dlog(ctx, ...) do { } while (0)
 #endif
 
 #ifdef TRACE



More information about the ffmpeg-cvslog mailing list