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

Michael Niedermayer michaelni
Wed Sep 3 00:54:15 CEST 2008

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

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- 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/20080903/e556cb1c/attachment.pgp>

More information about the ffmpeg-devel mailing list