OSDN Git Service

log: Use a do {} while (0) for tlog
authorLuca Barbato <lu_zero@gentoo.org>
Sat, 5 Dec 2015 12:45:01 +0000 (13:45 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 8 Dec 2015 10:26:21 +0000 (11:26 +0100)
Avoid the warning `-Wempty-body`.

libavcodec/internal.h

index 7f12344..3c1583d 100644 (file)
@@ -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