projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8e8933
)
get_bits: add av_unused tag to cache variable
author
Mans Rullgard
<mans@mansr.com>
Sat, 28 May 2011 14:46:55 +0000
(15:46 +0100)
committer
Mans 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
patch
|
blob
|
history
diff --git
a/libavcodec/get_bits.h
b/libavcodec/get_bits.h
index
185ff31
..
4136498
100644
(file)
--- 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