[FFmpeg-devel] [PATCH]Silence icc warnings
Michael Niedermayer
michaelni
Sun Dec 21 21:19:28 CET 2008
On Sat, Dec 20, 2008 at 08:49:12PM +0100, Carl Eugen Hoyos wrote:
> Hi!
>
> Attached patch fixes icc warnings depending on the installed gcc version.
>
> Please comment, Carl Eugen
> Index: libavutil/internal.h
> ===================================================================
> --- libavutil/internal.h (revision 16246)
> +++ libavutil/internal.h (working copy)
> @@ -36,7 +36,7 @@
> #include "common.h"
>
> #ifndef attribute_align_arg
> -#if AV_GCC_VERSION_AT_LEAST(4,2)
> +#if !defined(__ICC) && AV_GCC_VERSION_AT_LEAST(4,2)
> # define attribute_align_arg __attribute__((force_align_arg_pointer))
> #else
> # define attribute_align_arg
> Index: libavutil/mem.h
> ===================================================================
> --- libavutil/mem.h (revision 16246)
> +++ libavutil/mem.h (working copy)
> @@ -50,7 +50,7 @@
> #define av_malloc_attrib
> #endif
>
> -#if AV_GCC_VERSION_AT_LEAST(4,3)
> +#if !defined(__ICC) && AV_GCC_VERSION_AT_LEAST(4,3)
> #define av_alloc_size(n) __attribute__((alloc_size(n)))
> #else
> #define av_alloc_size(n)
> Index: libavutil/common.h
> ===================================================================
> --- libavutil/common.h (revision 16246)
> +++ libavutil/common.h (working copy)
> @@ -76,7 +76,7 @@
> #endif
>
> #ifndef av_cold
> -#if AV_GCC_VERSION_AT_LEAST(4,3)
> +#if !defined(__ICC) && AV_GCC_VERSION_AT_LEAST(4,3)
these things should be
AV_GCC_VERSION_AT_LEAST() || AV_ICC_VERSION_AT_LEAST()
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Thouse who are best at talking, realize last or never when they are wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081221/5b790a06/attachment.pgp>
More information about the ffmpeg-devel
mailing list