mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -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
4
savevm.c
4
savevm.c
|
@ -1615,10 +1615,10 @@ static int vmstate_subsection_load(QEMUFile *f, const VMStateDescription *vmsd,
|
|||
while (qemu_peek_byte(f) == QEMU_VM_SUBSECTION) {
|
||||
char idstr[256];
|
||||
int ret;
|
||||
uint8_t version_id, subsection, len;
|
||||
uint8_t version_id, len;
|
||||
const VMStateDescription *sub_vmsd;
|
||||
|
||||
subsection = qemu_get_byte(f);
|
||||
qemu_get_byte(f); /* subsection */
|
||||
len = qemu_get_byte(f);
|
||||
qemu_get_buffer(f, (uint8_t *)idstr, len);
|
||||
idstr[len] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue