[NET][SERVMAN]: Fix warning C4090.

[CMAKE]: Temporarily reconsider C4090 as a warning, otherwise we would have to fix ~= 33 problems in Wine dlls.

svn path=/trunk/; revision=60102
This commit is contained in:
Hermès Bélusca-Maïto 2013-09-14 14:51:56 +00:00
parent 1887b24413
commit b56d260d39
4 changed files with 5 additions and 4 deletions

View file

@ -183,7 +183,7 @@ DoStartService(PMAIN_WND_INFO Info,
}
if (lpArgsVector)
LocalFree(lpArgsVector);
LocalFree((LPVOID)lpArgsVector);
return bRet;
}

View file

@ -3,7 +3,7 @@ add_definitions(-D__USE_W32_SOCKETS)
list(APPEND SOURCE
main.c
cmdstart.c
cmdStart.c
cmdStop.c
cmdHelpMsg.c
cmdPause.c

View file

@ -142,7 +142,7 @@ StartOneService(INT argc, WCHAR **argv)
done:
if (lpArgVectors != NULL)
HeapFree(GetProcessHeap(), 0, lpArgVectors);
HeapFree(GetProcessHeap(), 0, (LPVOID)lpArgVectors);
if (hService != NULL)
CloseServiceHandle(hService);

View file

@ -37,7 +37,8 @@ add_compile_flags("/wd4290")
# for C++ programs, the compiler error C2440 is issued)
# - C4098: void function returning a value
# - C4700: uninitialized variable usage
add_compile_flags("/we4047 /we4090 /we4098 /we4700")
##add_compile_flags("/we4047 /we4090 /we4098 /we4700")
add_compile_flags("/we4047 /we4098 /we4700")
# Debugging
#if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")