diff options
| author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-01 11:42:41 +0000 |
|---|---|---|
| committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-01 11:42:41 +0000 |
| commit | e75018ad66658c968b50767847ea1ed5408897ba (patch) | |
| tree | 83096f55f8d89521e8938ac355722579abff72df /apps/codecs/aiff.c | |
| parent | 5e57edf2632eb69b0749a9af984fa399a487bec4 (diff) | |
| download | rockbox-e75018ad66658c968b50767847ea1ed5408897ba.zip rockbox-e75018ad66658c968b50767847ea1ed5408897ba.tar.gz rockbox-e75018ad66658c968b50767847ea1ed5408897ba.tar.bz2 rockbox-e75018ad66658c968b50767847ea1ed5408897ba.tar.xz | |
Fix several 'variable set but not used' warnings reported from GCC 4.6.0.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29805 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/aiff.c')
| -rw-r--r-- | apps/codecs/aiff.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/codecs/aiff.c b/apps/codecs/aiff.c index 3fc137e..a8185b4 100644 --- a/apps/codecs/aiff.c +++ b/apps/codecs/aiff.c @@ -77,7 +77,9 @@ enum codec_status codec_run(void) { struct pcm_format format; uint32_t bytesdone, decodedsamples; + /* rockbox: comment 'set but unused' variables uint32_t num_sample_frames = 0; + */ size_t n; int bufcount; int endofstream; @@ -146,8 +148,11 @@ enum codec_status codec_run(void) /* num_channels */ format.channels = ((buf[8]<<8)|buf[9]); /* num_sample_frames */ + /* num_sample_frames = ((buf[10]<<24)|(buf[11]<<16)|(buf[12]<<8) |buf[13]); + */ + /* sample_size */ format.bitspersample = ((buf[14]<<8)|buf[15]); /* sample_rate (don't use last 4 bytes, only integer fs) */ |