mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
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>
This commit is contained in:
parent
ae0bfb79aa
commit
49a2942d9b
14 changed files with 24 additions and 75 deletions
|
@ -66,7 +66,7 @@ static void ppc_heathrow_init (ram_addr_t ram_size,
|
|||
const char *initrd_filename,
|
||||
const char *cpu_model)
|
||||
{
|
||||
CPUState *env = NULL, *envs[MAX_CPUS];
|
||||
CPUState *env = NULL;
|
||||
char *filename;
|
||||
qemu_irq *pic, **heathrow_irqs;
|
||||
int linux_boot, i;
|
||||
|
@ -97,7 +97,6 @@ static void ppc_heathrow_init (ram_addr_t ram_size,
|
|||
/* Set time-base frequency to 16.6 Mhz */
|
||||
cpu_ppc_tb_init(env, 16600000UL);
|
||||
qemu_register_reset((QEMUResetHandler*)&cpu_reset, env);
|
||||
envs[i] = env;
|
||||
}
|
||||
|
||||
/* allocate RAM */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue