[FFmpeg-cvslog] lavu/internal: Replace an empty loop with "do {}".

Carl Eugen Hoyos git at videolan.org
Wed Dec 19 16:53:40 EET 2018


ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Mon Dec 17 20:33:24 2018 +0100| [a07470ba372fd85da5cf466365af6a98e18ac046] | committer: Carl Eugen Hoyos

lavu/internal: Replace an empty loop with "do {}".

Silences a clang warning when not compiling for x86:
libswscale/utils.c:345:13: warning: while loop has empty body

Suggested-by: Nicolas George

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a07470ba372fd85da5cf466365af6a98e18ac046
---

 libavutil/internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/internal.h b/libavutil/internal.h
index 06bd561e82..4acbcf56cb 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -52,7 +52,7 @@
 #endif
 
 #ifndef emms_c
-#   define emms_c() while(0)
+#   define emms_c() do {} while(0)
 #endif
 
 #ifndef attribute_align_arg



More information about the ffmpeg-cvslog mailing list