get_bits: add av_unused tag to cache variable
authorMans Rullgard <mans@mansr.com>
Sat, 28 May 2011 14:46:55 +0000 (15:46 +0100)
committerMans Rullgard <mans@mansr.com>
Sat, 28 May 2011 16:04:47 +0000 (17:04 +0100)
This silences numerous compiler warnings from skip_bits(),
where the cache variable is not used.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/get_bits.h

index 185ff31..4136498 100644 (file)
@@ -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