aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2008-09-02 23:14:11 +0000
committerDiego Biurrun <diego@biurrun.de>2008-09-02 23:14:11 +0000
commitab210908692a979834c59661c6d4ed0fff2370f5 (patch)
tree33553fc58988a6dc8ba503d860933ee7230f24d4
parentbd10f6e1492492b0dfddc7dd8773e782ccea6daf (diff)
downloadffmpeg-ab210908692a979834c59661c6d4ed0fff2370f5.tar.gz
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
-rw-r--r--libavcodec/cabac.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/cabac.h b/libavcodec/cabac.h
index bfab32dae5..b4ce2fd6c3 100644
--- a/libavcodec/cabac.h
+++ b/libavcodec/cabac.h
@@ -582,15 +582,15 @@ static av_always_inline int get_cabac_inline(CABACContext *c, uint8_t * const st
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_bypass_sign(CABACContext *c, int val){
*
* @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);