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.tar.gz rockbox-f7c45941344ecfbcdd5d9b311b61573d37c6ef58.zip |
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 4094b4c34f..11d001cd6a 100644 --- a/apps/plugins/mp3_encoder.c +++ b/apps/plugins/mp3_encoder.c | |||
@@ -871,8 +871,10 @@ int Read32BitsLowHigh(int fd) | |||
871 | int wave_open(void) | 871 | int wave_open(void) |
872 | { | 872 | { |
873 | unsigned short wFormatTag; | 873 | unsigned short wFormatTag; |
874 | /* rockbox: comment 'set but unused" variable | ||
874 | unsigned long dAvgBytesPerSec; | 875 | unsigned long dAvgBytesPerSec; |
875 | unsigned short wBlockAlign; | 876 | unsigned short wBlockAlign; |
877 | */ | ||
876 | unsigned short bits_per_samp; | 878 | unsigned short bits_per_samp; |
877 | long header_size; | 879 | long header_size; |
878 | 880 | ||
@@ -889,8 +891,8 @@ int wave_open(void) | |||
889 | 891 | ||
890 | cfg.channels = Read16BitsLowHigh(wavfile); | 892 | cfg.channels = Read16BitsLowHigh(wavfile); |
891 | cfg.samplerate = Read32BitsLowHigh(wavfile); | 893 | cfg.samplerate = Read32BitsLowHigh(wavfile); |
892 | dAvgBytesPerSec = Read32BitsLowHigh(wavfile); | 894 | /*dAvgBytesPerSec*/ Read32BitsLowHigh(wavfile); |
893 | wBlockAlign = Read16BitsLowHigh(wavfile); | 895 | /*wBlockAlign */ Read16BitsLowHigh(wavfile); |
894 | bits_per_samp = Read16BitsLowHigh(wavfile); | 896 | bits_per_samp = Read16BitsLowHigh(wavfile); |
895 | 897 | ||
896 | if(wFormatTag != 0x0001) return -5; /* linear PCM required */ | 898 | if(wFormatTag != 0x0001) return -5; /* linear PCM required */ |