summaryrefslogtreecommitdiff
path: root/net/tap-win32.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 /net/tap-win32.c
parentae0bfb79aa0ac411a433433af4d74f1f08255608 (diff)
downloadqemu-49a2942d9be0b08aed3e63901561745378ea5e4f.tar.gz
qemu-49a2942d9be0b08aed3e63901561745378ea5e4f.tar.bz2
qemu-49a2942d9be0b08aed3e63901561745378ea5e4f.zip
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 'net/tap-win32.c')
-rw-r--r--net/tap-win32.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/tap-win32.c b/net/tap-win32.c
index 9fe4fcd5f4..081904e8d7 100644
--- a/net/tap-win32.c
+++ b/net/tap-win32.c
@@ -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;
}