From b947ac9096e3eedd167a37c64509f0eba7a871e9 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 20 Sep 2015 12:55:10 +0200 Subject: avcodec/internal: Use do {} while() for ff_tlog() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Avoids problems when used without braces Found-by: Clément Bœsch Signed-off-by: Michael Niedermayer --- libavcodec/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/internal.h') diff --git a/libavcodec/internal.h b/libavcodec/internal.h index fbee41132b..52b89172cb 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -57,7 +57,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 -- cgit v1.2.3