[FFmpeg-cvslog] internal: Make dlog/tlog a no-op when disabled
Vittorio Giovara
git at videolan.org
Fri Apr 24 20:56:45 CEST 2015
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Tue Apr 21 13:24:18 2015 +0100| [5bba3ab0cf7a0238ee1ea31ca2da08ce860fd8f9] | committer: Vittorio Giovara
internal: Make dlog/tlog a no-op when disabled
Improves Coverity analysis, avoiding "double semicolon" CIDs.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5bba3ab0cf7a0238ee1ea31ca2da08ce860fd8f9
---
libavcodec/internal.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 6f15a78..634400f 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -51,13 +51,13 @@
#ifdef DEBUG
# define ff_dlog(ctx, ...) av_log(ctx, AV_LOG_DEBUG, __VA_ARGS__)
#else
-# define ff_dlog(ctx, ...)
+# define ff_dlog(ctx, ...) while(0)
#endif
#ifdef TRACE
# define ff_tlog(ctx, ...) av_log(ctx, AV_LOG_TRACE, __VA_ARGS__)
#else
-# define ff_tlog(p, ...)
+# define ff_tlog(ctx, ...) while(0)
#endif
More information about the ffmpeg-cvslog
mailing list