aboutsummaryrefslogtreecommitdiff
path: root/hw/mips_r4k.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-10-13 18:41:29 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-10-13 18:41:29 +0000
commit49a2942d9be0b08aed3e63901561745378ea5e4f (patch)
treef3d038f4cc13c46f6416caa1eefedd22be39ce8f /hw/mips_r4k.c
parentae0bfb79aa0ac411a433433af4d74f1f08255608 (diff)
downloadqemu-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/mips_r4k.c')
-rw-r--r--hw/mips_r4k.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/mips_r4k.c b/hw/mips_r4k.c
index ca61431..aa34890 100644
--- a/hw/mips_r4k.c
+++ b/hw/mips_r4k.c
@@ -167,7 +167,6 @@ void mips_r4k_init (ram_addr_t ram_size,
int bios_size;
CPUState *env;
ResetData *reset_info;
- ISADevice *rtc_state;
int i;
qemu_irq *i8259;
DriveInfo *hd[MAX_IDE_BUS * MAX_IDE_DEVS];
@@ -268,7 +267,7 @@ void mips_r4k_init (ram_addr_t ram_size,
isa_bus_new(NULL);
isa_bus_irqs(i8259);
- rtc_state = rtc_init(2000, NULL);
+ rtc_init(2000, NULL);
/* Register 64 KB of ISA IO space at 0x14000000 */
#ifdef TARGET_WORDS_BIGENDIAN