From 6dac8c83273ebb6ab8cf516ec87e14f2ab2b001a Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 16 Jul 2012 19:30:13 +0000 Subject: [PATCH] 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 --- libavutil/attributes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/attributes.h b/libavutil/attributes.h index c1f26f5ba4..64b46f68f0 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 -- 2.11.0