From 34138ece23c8ddae543269212a051c00d49e67d7 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Sat, 5 Dec 2015 13:45:01 +0100 Subject: [PATCH] log: Use a do {} while (0) for tlog Avoid the warning `-Wempty-body`. --- libavcodec/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/internal.h b/libavcodec/internal.h index 7f12344533..3c1583dab4 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