summaryrefslogtreecommitdiff
path: root/libavcodec/internal.h
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-04-21 13:24:18 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-04-24 14:55:10 +0100
commit5bba3ab0cf7a0238ee1ea31ca2da08ce860fd8f9 (patch)
treecd6f2560b4bc65f108831d7bf5dbdf7072a15177 /libavcodec/internal.h
parentb90adb0aba073f9c1b4abca852119947393ced4c (diff)
internal: Make dlog/tlog a no-op when disabled
Improves Coverity analysis, avoiding "double semicolon" CIDs.
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r--libavcodec/internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index 6f15a782bb..634400f384 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