mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23: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
|
@ -579,7 +579,6 @@ static int tap_win32_open(tap_win32_overlapped_t **phandle,
|
|||
} version;
|
||||
DWORD version_len;
|
||||
DWORD idThread;
|
||||
HANDLE hThread;
|
||||
|
||||
if (prefered_name != NULL)
|
||||
snprintf(name_buffer, sizeof(name_buffer), "%s", prefered_name);
|
||||
|
@ -623,8 +622,8 @@ static int tap_win32_open(tap_win32_overlapped_t **phandle,
|
|||
|
||||
*phandle = &tap_overlapped;
|
||||
|
||||
hThread = CreateThread(NULL, 0, tap_win32_thread_entry,
|
||||
(LPVOID)&tap_overlapped, 0, &idThread);
|
||||
CreateThread(NULL, 0, tap_win32_thread_entry,
|
||||
(LPVOID)&tap_overlapped, 0, &idThread);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue