summaryrefslogtreecommitdiff
path: root/apps/codecs/lib/ffmpeg_get_bits.h
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2011-05-01 16:53:20 +0000
committerNils Wallménius <nils@rockbox.org>2011-05-01 16:53:20 +0000
commit4a62bc40c2c91e20053824444aa4a162385a2601 (patch)
tree8edc5a309feafc543886c53dc1a1ef092a1936b1 /apps/codecs/lib/ffmpeg_get_bits.h
parent27d153db930a231718a18ec5a886c8789077c83a (diff)
downloadrockbox-4a62bc40c2c91e20053824444aa4a162385a2601.tar.gz
rockbox-4a62bc40c2c91e20053824444aa4a162385a2601.zip
Work around another 'set but not used' warning.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29811 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/lib/ffmpeg_get_bits.h')
-rw-r--r--apps/codecs/lib/ffmpeg_get_bits.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/codecs/lib/ffmpeg_get_bits.h b/apps/codecs/lib/ffmpeg_get_bits.h
index 8fce395a4d..139d7ae556 100644
--- a/apps/codecs/lib/ffmpeg_get_bits.h
+++ b/apps/codecs/lib/ffmpeg_get_bits.h
@@ -178,9 +178,11 @@ for examples see get_bits, show_bits, skip_bits, get_vlc
178#ifdef ALT_BITSTREAM_READER 178#ifdef ALT_BITSTREAM_READER
179# define MIN_CACHE_BITS 25 179# define MIN_CACHE_BITS 25
180 180
181
182/* ROCKBOX: work around "set but not used" warning */
181# define OPEN_READER(name, gb)\ 183# define OPEN_READER(name, gb)\
182 unsigned int name##_index= (gb)->index;\ 184 unsigned int name##_index= (gb)->index;\
183 int name##_cache= 0;\ 185 int name##_cache __attribute__((unused)) = 0;\
184 186
185# define CLOSE_READER(name, gb)\ 187# define CLOSE_READER(name, gb)\
186 (gb)->index= name##_index;\ 188 (gb)->index= name##_index;\