[FFmpeg-devel] [PATCH] silence some defined but not used warnings

Diego Biurrun diego
Wed Sep 3 01:14:25 CEST 2008


On Wed, Sep 03, 2008 at 12:54:15AM +0200, Michael Niedermayer wrote:
> On Wed, Sep 03, 2008 at 12:36:46AM +0200, Diego Biurrun wrote:
> > On Fri, Aug 29, 2008 at 12:22:39AM +0200, Diego Biurrun wrote:
> > > Since some time I'm being annoyed by
> > > 
> > > libavcodec/cabac.h:585: warning: 'get_cabac_noinline' defined but not used
> > > libavcodec/cabac.h:589: warning: 'get_cabac' defined but not used
> > > libavcodec/cabac.h:593: warning: 'get_cabac_bypass' defined but not used
> > > libavcodec/cabac.h:692: warning: 'get_cabac_terminate' defined but not used
> > > 
> > > so here is a patch to silence the warnings via attribute_used.
> > 
> > I'm hearing no objections, so this will hit the tree on the weekend.
> 
> the correct one is attribute unused
> 
> used forces code to be emitted
> unused silences the warning, that is it markes the code as possibly unused

OK, thanks for the explanation, implemented that way.

Diego




More information about the ffmpeg-devel mailing list