OSDN Git Service

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 500511d..adec523 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