summaryrefslogtreecommitdiff
path: root/libavcodec/get_bits.h
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-05-28 15:46:55 +0100
committerMans Rullgard <mans@mansr.com>2011-05-28 17:04:47 +0100
commite01e05ee66f7ea26dd7574501e329aa5b8e788ef (patch)
tree410f9600e0ed4a5270839c6b60e3aa712c20b176 /libavcodec/get_bits.h
parentb8e893399ff8755721dc117695ec5ff183c1e07b (diff)
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@mansr.com>
Diffstat (limited to 'libavcodec/get_bits.h')
-rw-r--r--libavcodec/get_bits.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h
index 185ff316bb..4136498c71 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