Skip to content

Commit

Permalink
Win32: Fix warnings
Browse files Browse the repository at this point in the history
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
  • Loading branch information
aurel32 committed Nov 6, 2008
1 parent 1304ca8 commit 978d5d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bt-host.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ struct HCIInfo *bt_host_hci(const char *id)
#else
struct HCIInfo *bt_host_hci(const char *id)
{
fprintf(stderr, "qemu: bluetooth passthrough not supported (yet)\n", errno);
fprintf(stderr, "qemu: bluetooth passthrough not supported (yet)\n");

return 0;
}
Expand Down
1 change: 0 additions & 1 deletion exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ static void page_init(void)
#ifdef _WIN32
{
SYSTEM_INFO system_info;
DWORD old_protect;

GetSystemInfo(&system_info);
qemu_real_host_page_size = system_info.dwPageSize;
Expand Down
6 changes: 3 additions & 3 deletions tap-win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
// Compile time configuration
//======================

//#define DEBUG_TAP_WIN32 1
//#define DEBUG_TAP_WIN32

#define TUN_ASYNCHRONOUS_WRITES 1

Expand Down Expand Up @@ -509,7 +509,7 @@ static DWORD WINAPI tap_win32_thread_entry(LPVOID param)
result = GetOverlappedResult( overlapped->handle, &overlapped->read_overlapped,
&read_size, FALSE);
if (!result) {
#if DEBUG_TAP_WIN32
#ifdef DEBUG_TAP_WIN32
LPVOID lpBuffer;
dwError = GetLastError();
FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
Expand All @@ -520,7 +520,7 @@ static DWORD WINAPI tap_win32_thread_entry(LPVOID param)
#endif
}
} else {
#if DEBUG_TAP_WIN32
#ifdef DEBUG_TAP_WIN32
LPVOID lpBuffer;
FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
NULL, dwError, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
Expand Down

0 comments on commit 978d5d7

Please sign in to comment.