diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-10-13 18:41:29 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-10-13 18:41:29 +0000 |
commit | 49a2942d9be0b08aed3e63901561745378ea5e4f (patch) | |
tree | f3d038f4cc13c46f6416caa1eefedd22be39ce8f /hw/wm8750.c | |
parent | ae0bfb79aa0ac411a433433af4d74f1f08255608 (diff) | |
download | qemu-49a2942d9be0b08aed3e63901561745378ea5e4f.zip qemu-49a2942d9be0b08aed3e63901561745378ea5e4f.tar.gz qemu-49a2942d9be0b08aed3e63901561745378ea5e4f.tar.bz2 |
Delete write only variables
Compiling with GCC 4.6.0 20100925 produced warnings like:
/src/qemu/net/tap-win32.c: In function 'tap_win32_open':
/src/qemu/net/tap-win32.c:582:12: error: variable 'hThread' set but not used [-Werror=unused-but-set-variable]
Fix by removing the unused variables.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/wm8750.c')
-rw-r--r-- | hw/wm8750.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/hw/wm8750.c b/hw/wm8750.c index ce43c23..c9c6744 100644 --- a/hw/wm8750.c +++ b/hw/wm8750.c @@ -171,7 +171,6 @@ static void wm8750_set_format(WM8750State *s) int i; struct audsettings in_fmt; struct audsettings out_fmt; - struct audsettings monoout_fmt; wm8750_out_flush(s); @@ -212,10 +211,6 @@ static void wm8750_set_format(WM8750State *s) out_fmt.nchannels = 2; out_fmt.freq = s->dac_hz; out_fmt.fmt = AUD_FMT_S16; - monoout_fmt.endianness = 0; - monoout_fmt.nchannels = 1; - monoout_fmt.freq = s->rate->dac_hz; - monoout_fmt.fmt = AUD_FMT_S16; s->dac_voice[0] = AUD_open_out(&s->card, s->dac_voice[0], CODEC ".speaker", s, wm8750_audio_out_cb, &out_fmt); |