[FFmpeg-cvslog] avcodec/tableprint_vlc: Do not define functions to nothing

Michael Niedermayer git at videolan.org
Thu May 7 01:06:25 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu May  7 00:52:47 2015 +0200| [0c015aa95c2dcd7ae60a560ad913d98ef81404ce] | committer: Michael Niedermayer

avcodec/tableprint_vlc: Do not define functions to nothing

This avoids potential warnings

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/tableprint_vlc.h |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavcodec/tableprint_vlc.h b/libavcodec/tableprint_vlc.h
index 7f46f2e..33a9c0e 100644
--- a/libavcodec/tableprint_vlc.h
+++ b/libavcodec/tableprint_vlc.h
@@ -25,14 +25,14 @@
 
 #define FFMPEG_CONFIG_H
 #define AVUTIL_LOG_H
-#define av_log(a, ...)
-#define ff_dlog(a, ...)
+#define av_log(a, ...) while(0)
+#define ff_dlog(a, ...) while(0)
 #define AVUTIL_MEM_H
 #define av_malloc(s) NULL
 #define av_malloc_array(a, b) NULL
 #define av_realloc_f(p, o, n) NULL
-#define av_free(p)
-#define av_freep(p)
+#define av_free(p) while(0)
+#define av_freep(p) while(0)
 #define AVCODEC_AVCODEC_H
 #define AVCODEC_INTERNAL_H
 #include "tableprint.h"



More information about the ffmpeg-cvslog mailing list