Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 1st, 2011  |  syntax: None  |  size: 0.91 KB  |  views: 99  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Index: rockbox/source/apps/codecs/lib/ffmpeg_get_bits.h
  2. ===================================================================
  3. --- rockbox/source/apps/codecs/lib/ffmpeg_get_bits.h    (revision 29793)
  4. +++ rockbox/source/apps/codecs/lib/ffmpeg_get_bits.h    (arbetskopia)
  5. @@ -178,9 +178,16 @@
  6.  #ifdef ALT_BITSTREAM_READER
  7.  #   define MIN_CACHE_BITS 25
  8.  
  9. -#   define OPEN_READER(name, gb)\
  10. -        unsigned int name##_index= (gb)->index;\
  11. -        int name##_cache= 0;\
  12. +/* ROCKBOX: work around "set but not used" warning */
  13. +#   ifdef __GNUC__
  14. +#       define OPEN_READER(name, gb)\
  15. +            unsigned int name##_index= (gb)->index;\
  16. +            int name##_cache __attribute__((unused)) = 0;
  17. +#   else
  18. +#       define OPEN_READER(name, gb)\
  19. +            unsigned int name##_index= (gb)->index;\
  20. +            int name##_cache= 0;
  21. +#   endif
  22.  
  23.  #   define CLOSE_READER(name, gb)\
  24.          (gb)->index= name##_index;\