]> git.sesse.net Git - ffmpeg/commitdiff
log: Use a do {} while (0) for dlog
authorLuca Barbato <lu_zero@gentoo.org>
Sat, 5 Dec 2015 12:45:01 +0000 (13:45 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 5 Dec 2015 12:47:09 +0000 (13:47 +0100)
Avoid the warning `-Wempty-body`.

libavcodec/internal.h

index 500511dadaab0a88a0af884592452e2085a49523..adec52342b4479df8472937481bf65c4da84fd2d 100644 (file)
@@ -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