[FFmpeg-cvslog] r15161 - trunk/libavcodec/cabac.h

diego subversion
Wed Sep 3 01:14:12 CEST 2008


Author: diego
Date: Wed Sep  3 01:14:11 2008
New Revision: 15161

Log:
Silence a couple of 'defined but not used' warnings by adding an av_unused
attribute to the relevant function declarations.


Modified:
   trunk/libavcodec/cabac.h

Modified: trunk/libavcodec/cabac.h
==============================================================================
--- trunk/libavcodec/cabac.h	(original)
+++ trunk/libavcodec/cabac.h	Wed Sep  3 01:14:11 2008
@@ -582,15 +582,15 @@ static av_always_inline int get_cabac_in
     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 @@ static av_always_inline int get_cabac_by
  *
  * @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);




More information about the ffmpeg-cvslog mailing list