[FFmpeg-cvslog] get_bits: add av_unused tag to cache variable

Mans Rullgard git at videolan.org
Sun May 29 03:46:45 CEST 2011


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Sat May 28 15:46:55 2011 +0100| [e01e05ee66f7ea26dd7574501e329aa5b8e788ef] | committer: Mans Rullgard

get_bits: add av_unused tag to cache variable

This silences numerous compiler warnings from skip_bits(),
where the cache variable is not used.

Signed-off-by: Mans Rullgard <mans at mansr.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e01e05ee66f7ea26dd7574501e329aa5b8e788ef
---

 libavcodec/get_bits.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h
index 185ff31..4136498 100644
--- a/libavcodec/get_bits.h
+++ b/libavcodec/get_bits.h
@@ -127,7 +127,7 @@ for examples see get_bits, show_bits, skip_bits, get_vlc
 
 #   define OPEN_READER(name, gb)                \
     unsigned int name##_index = (gb)->index;    \
-    unsigned int name##_cache = 0
+    unsigned int av_unused name##_cache = 0
 
 #   define CLOSE_READER(name, gb) (gb)->index = name##_index
 



More information about the ffmpeg-cvslog mailing list