Commit 978d5d73edeea8d5c725c43b7bd23fd897cac7fa
1 parent
1304ca87
Win32: Fix warnings
Attached patch fixes some warnings which only happen on Windows. Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5639 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
3 changed files
with
4 additions
and
5 deletions
bt-host.c
... | ... | @@ -200,7 +200,7 @@ struct HCIInfo *bt_host_hci(const char *id) |
200 | 200 | #else |
201 | 201 | struct HCIInfo *bt_host_hci(const char *id) |
202 | 202 | { |
203 | - fprintf(stderr, "qemu: bluetooth passthrough not supported (yet)\n", errno); | |
203 | + fprintf(stderr, "qemu: bluetooth passthrough not supported (yet)\n"); | |
204 | 204 | |
205 | 205 | return 0; |
206 | 206 | } |
... | ... |
exec.c
tap-win32.c
... | ... | @@ -77,7 +77,7 @@ |
77 | 77 | // Compile time configuration |
78 | 78 | //====================== |
79 | 79 | |
80 | -//#define DEBUG_TAP_WIN32 1 | |
80 | +//#define DEBUG_TAP_WIN32 | |
81 | 81 | |
82 | 82 | #define TUN_ASYNCHRONOUS_WRITES 1 |
83 | 83 | |
... | ... | @@ -509,7 +509,7 @@ static DWORD WINAPI tap_win32_thread_entry(LPVOID param) |
509 | 509 | result = GetOverlappedResult( overlapped->handle, &overlapped->read_overlapped, |
510 | 510 | &read_size, FALSE); |
511 | 511 | if (!result) { |
512 | -#if DEBUG_TAP_WIN32 | |
512 | +#ifdef DEBUG_TAP_WIN32 | |
513 | 513 | LPVOID lpBuffer; |
514 | 514 | dwError = GetLastError(); |
515 | 515 | FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, |
... | ... | @@ -520,7 +520,7 @@ static DWORD WINAPI tap_win32_thread_entry(LPVOID param) |
520 | 520 | #endif |
521 | 521 | } |
522 | 522 | } else { |
523 | -#if DEBUG_TAP_WIN32 | |
523 | +#ifdef DEBUG_TAP_WIN32 | |
524 | 524 | LPVOID lpBuffer; |
525 | 525 | FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, |
526 | 526 | NULL, dwError, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), |
... | ... |