mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -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
|
@ -176,7 +176,6 @@ static void mpc8544ds_init(ram_addr_t ram_size,
|
|||
int i=0;
|
||||
unsigned int pci_irq_nrs[4] = {1, 2, 3, 4};
|
||||
qemu_irq *irqs, *mpic, *pci_irqs;
|
||||
SerialState * serial[2];
|
||||
|
||||
/* Setup CPU */
|
||||
env = cpu_ppc_init("e500v2_v30");
|
||||
|
@ -200,15 +199,15 @@ static void mpc8544ds_init(ram_addr_t ram_size,
|
|||
|
||||
/* Serial */
|
||||
if (serial_hds[0]) {
|
||||
serial[0] = serial_mm_init(MPC8544_SERIAL0_REGS_BASE,
|
||||
0, mpic[12+26], 399193,
|
||||
serial_hds[0], 1, 1);
|
||||
serial_mm_init(MPC8544_SERIAL0_REGS_BASE,
|
||||
0, mpic[12+26], 399193,
|
||||
serial_hds[0], 1, 1);
|
||||
}
|
||||
|
||||
if (serial_hds[1]) {
|
||||
serial[0] = serial_mm_init(MPC8544_SERIAL1_REGS_BASE,
|
||||
0, mpic[12+26], 399193,
|
||||
serial_hds[0], 1, 1);
|
||||
serial_mm_init(MPC8544_SERIAL1_REGS_BASE,
|
||||
0, mpic[12+26], 399193,
|
||||
serial_hds[0], 1, 1);
|
||||
}
|
||||
|
||||
/* PCI */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue