From f7c45941344ecfbcdd5d9b311b61573d37c6ef58 Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Sun, 1 May 2011 13:48:28 +0000 Subject: 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 --- apps/plugins/mp3_encoder.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/plugins/mp3_encoder.c') 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) 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 */ -- cgit v1.2.3