diff options
| author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-01 13:48:28 +0000 |
|---|---|---|
| committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-01 13:48:28 +0000 |
| commit | f7c45941344ecfbcdd5d9b311b61573d37c6ef58 (patch) | |
| tree | 4c2fa595d7209694dd30b0e0b349a0a44116d712 /apps/plugins/mp3_encoder.c | |
| parent | 08fb3f65745a237e2c1eae55d856ff27702246e5 (diff) | |
| download | rockbox-f7c45941344ecfbcdd5d9b311b61573d37c6ef58.zip rockbox-f7c45941344ecfbcdd5d9b311b61573d37c6ef58.tar.gz rockbox-f7c45941344ecfbcdd5d9b311b61573d37c6ef58.tar.bz2 rockbox-f7c45941344ecfbcdd5d9b311b61573d37c6ef58.tar.xz | |
Fix further 'variable set but not used' warnings reported from GCC 4.6.0.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29809 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mp3_encoder.c')
| -rw-r--r-- | apps/plugins/mp3_encoder.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/mp3_encoder.c b/apps/plugins/mp3_encoder.c index 4094b4c..11d001c 100644 --- a/apps/plugins/mp3_encoder.c +++ b/apps/plugins/mp3_encoder.c @@ -871,8 +871,10 @@ int Read32BitsLowHigh(int fd) int wave_open(void) { unsigned short wFormatTag; + /* rockbox: comment 'set but unused" variable unsigned long dAvgBytesPerSec; unsigned short wBlockAlign; + */ unsigned short bits_per_samp; long header_size; @@ -889,8 +891,8 @@ int wave_open(void) cfg.channels = Read16BitsLowHigh(wavfile); cfg.samplerate = Read32BitsLowHigh(wavfile); - dAvgBytesPerSec = Read32BitsLowHigh(wavfile); - wBlockAlign = Read16BitsLowHigh(wavfile); + /*dAvgBytesPerSec*/ Read32BitsLowHigh(wavfile); + /*wBlockAlign */ Read16BitsLowHigh(wavfile); bits_per_samp = Read16BitsLowHigh(wavfile); if(wFormatTag != 0x0001) return -5; /* linear PCM required */ |