[FFmpeg-cvslog] lavu: disable av_uninit for clang
Paul B Mahol
git at videolan.org
Mon Jul 16 22:47:28 CEST 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Jul 16 19:30:13 2012 +0000| [6dac8c83273ebb6ab8cf516ec87e14f2ab2b001a] | committer: Paul B Mahol
lavu: disable av_uninit for clang
This silence bunch of useless warnings like:
libavformat/mpeg.c:393:37: warning: variable 'dvdaudio_substream_type' is uninitialized when used within its own initialization [-Wuninitialized]
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6dac8c83273ebb6ab8cf516ec87e14f2ab2b001a
---
libavutil/attributes.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/attributes.h b/libavutil/attributes.h
index c1f26f5..64b46f6 100644
--- a/libavutil/attributes.h
+++ b/libavutil/attributes.h
@@ -131,7 +131,7 @@
# define av_alias
#endif
-#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
+#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(__clang__)
# define av_uninit(x) x=x
#else
# define av_uninit(x) x
More information about the ffmpeg-cvslog
mailing list