[FFmpeg-cvslog] r17104 - trunk/libavutil/common.h

Måns Rullgård mans
Mon Feb 9 23:17:43 CET 2009


michael <subversion at mplayerhq.hu> writes:

> Author: michael
> Date: Mon Feb  9 22:47:05 2009
> New Revision: 17104
>
> Log:
> av_uninit() to suppress false uninitialized warnings from gcc without deoptimizing code.
>
> Modified:
>    trunk/libavutil/common.h
>
> Modified: trunk/libavutil/common.h
> ==============================================================================
> --- trunk/libavutil/common.h	Mon Feb  9 22:34:20 2009	(r17103)
> +++ trunk/libavutil/common.h	Mon Feb  9 22:47:05 2009	(r17104)
> @@ -93,6 +93,14 @@
>  #endif
>  #endif
>
> +#ifndef av_uninit
> +#if defined(__GNUC__)
> +#    define av_uninit(x) x=x
> +#else
> +#    define av_uninit(x) x
> +#endif
> +#endif

What do almost-gcc compilers like icc do with this?  I bet some will
issue warnings...

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-cvslog mailing list