lavu: disable av_uninit for clang
authorPaul B Mahol <onemda@gmail.com>
Mon, 16 Jul 2012 19:30:13 +0000 (19:30 +0000)
committerPaul B Mahol <onemda@gmail.com>
Mon, 16 Jul 2012 19:30:13 +0000 (19:30 +0000)
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@gmail.com>
libavutil/attributes.h

index c1f26f5..64b46f6 100644 (file)
 #   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