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

Luca Barbato git at videolan.org
Fri Dec 18 14:52:10 CET 2015


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

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

Avoid the warning `-Wempty-body`.

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

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

diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 7f12344..3c1583d 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -63,7 +63,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, ...) do { } while (0)
 #endif
 
 



More information about the ffmpeg-cvslog mailing list