[FFmpeg-devel] [PATCH] silence "may be used uninitialized" warnings
Diego Biurrun
diego
Fri Sep 21 01:32:02 CEST 2007
On Thu, Sep 20, 2007 at 11:00:02PM +0200, Aurelien Jacobs wrote:
>
> This patch does $subj for 2 warnings.
> If this is acceptable, this could then be applied to all other such
> warnings (after carefully verifying that those warnings are really
> false positives).
> So is it acceptable ?
>
> --- libavutil/common.h (revision 10534)
> +++ libavutil/common.h (working copy)
> @@ -77,6 +77,10 @@
>
> +#ifndef uninitialized_var
> +# define uninitialized_var(x) x=x
> +#endif
av prefix?
Also, can't this be done with some __attribute__?
Diego
More information about the ffmpeg-devel
mailing list