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
This commit is contained in:
parent
1304ca878a
commit
978d5d73ed
@ -200,7 +200,7 @@ struct HCIInfo *bt_host_hci(const char *id)
|
|||||||
#else
|
#else
|
||||||
struct HCIInfo *bt_host_hci(const char *id)
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
1
exec.c
1
exec.c
@ -234,7 +234,6 @@ static void page_init(void)
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
{
|
{
|
||||||
SYSTEM_INFO system_info;
|
SYSTEM_INFO system_info;
|
||||||
DWORD old_protect;
|
|
||||||
|
|
||||||
GetSystemInfo(&system_info);
|
GetSystemInfo(&system_info);
|
||||||
qemu_real_host_page_size = system_info.dwPageSize;
|
qemu_real_host_page_size = system_info.dwPageSize;
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
// Compile time configuration
|
// Compile time configuration
|
||||||
//======================
|
//======================
|
||||||
|
|
||||||
//#define DEBUG_TAP_WIN32 1
|
//#define DEBUG_TAP_WIN32
|
||||||
|
|
||||||
#define TUN_ASYNCHRONOUS_WRITES 1
|
#define TUN_ASYNCHRONOUS_WRITES 1
|
||||||
|
|
||||||
@ -509,7 +509,7 @@ static DWORD WINAPI tap_win32_thread_entry(LPVOID param)
|
|||||||
result = GetOverlappedResult( overlapped->handle, &overlapped->read_overlapped,
|
result = GetOverlappedResult( overlapped->handle, &overlapped->read_overlapped,
|
||||||
&read_size, FALSE);
|
&read_size, FALSE);
|
||||||
if (!result) {
|
if (!result) {
|
||||||
#if DEBUG_TAP_WIN32
|
#ifdef DEBUG_TAP_WIN32
|
||||||
LPVOID lpBuffer;
|
LPVOID lpBuffer;
|
||||||
dwError = GetLastError();
|
dwError = GetLastError();
|
||||||
FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
|
FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
|
||||||
@ -520,7 +520,7 @@ static DWORD WINAPI tap_win32_thread_entry(LPVOID param)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
#if DEBUG_TAP_WIN32
|
#ifdef DEBUG_TAP_WIN32
|
||||||
LPVOID lpBuffer;
|
LPVOID lpBuffer;
|
||||||
FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
|
FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
|
||||||
NULL, dwError, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
|
NULL, dwError, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
|
||||||
|
Loading…
Reference in New Issue
Block a user