[FFmpeg-devel] [PATCH] lavu: disable av_uninit for clang
Paul B Mahol
onemda at gmail.com
Mon Jul 16 21:34:51 CEST 2012
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>
---
libavutil/attributes.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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
--
1.7.7
More information about the ffmpeg-devel
mailing list