mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Silence a couple of 'defined but not used' warnings by adding an av_unused
attribute to the relevant function declarations. Originally committed as revision 15161 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
bd10f6e149
commit
ab21090869
@ -582,15 +582,15 @@ static av_always_inline int get_cabac_inline(CABACContext *c, uint8_t * const st
|
|||||||
return bit;
|
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);
|
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);
|
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
|
#if 0 //not faster
|
||||||
int bit;
|
int bit;
|
||||||
asm volatile(
|
asm volatile(
|
||||||
@ -689,7 +689,7 @@ static av_always_inline int get_cabac_bypass_sign(CABACContext *c, int val){
|
|||||||
*
|
*
|
||||||
* @return the number of bytes read or 0 if no end
|
* @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;
|
c->range -= 2;
|
||||||
if(c->low < c->range<<(CABAC_BITS+1)){
|
if(c->low < c->range<<(CABAC_BITS+1)){
|
||||||
renorm_cabac_decoder_once(c);
|
renorm_cabac_decoder_once(c);
|
||||||
|
Loading…
Reference in New Issue
Block a user