# HG changeset patch # User diego # Date 1220397251 0 # Node ID 490ee89408c5aa0d92110ff0b49dec48503698a3 # Parent a570a1e804003751c04b294ca5cb5ec9776cd726 Silence a couple of 'defined but not used' warnings by adding an av_unused attribute to the relevant function declarations. diff -r a570a1e80400 -r 490ee89408c5 cabac.h --- a/cabac.h Tue Sep 02 23:09:14 2008 +0000 +++ b/cabac.h Tue Sep 02 23:14:11 2008 +0000 @@ -582,15 +582,15 @@ return bit; } -static int av_noinline get_cabac_noinline(CABACContext *c, uint8_t * const state){ +static int av_noinline av_unused get_cabac_noinline(CABACContext *c, uint8_t * const state){ return get_cabac_inline(c,state); } -static int get_cabac(CABACContext *c, uint8_t * const state){ +static int av_unused get_cabac(CABACContext *c, uint8_t * const state){ return get_cabac_inline(c,state); } -static int get_cabac_bypass(CABACContext *c){ +static int av_unused get_cabac_bypass(CABACContext *c){ #if 0 //not faster int bit; asm volatile( @@ -689,7 +689,7 @@ * * @return the number of bytes read or 0 if no end */ -static int get_cabac_terminate(CABACContext *c){ +static int av_unused get_cabac_terminate(CABACContext *c){ c->range -= 2; if(c->low < c->range<<(CABAC_BITS+1)){ renorm_cabac_decoder_once(c);