[FFmpeg-devel] [PATCH] silence "may be used uninitialized" warnings

Aurelien Jacobs aurel
Fri Sep 21 01:43:49 CEST 2007


Diego Biurrun wrote:

> 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?

Would be a good idea indeed (but that won't help with readability...).

> Also, can't this be done with some __attribute__?

Not that I know of.

Aurel




More information about the ffmpeg-devel mailing list