mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 02:36:13 +00:00
[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:
parent
1887b24413
commit
b56d260d39
4 changed files with 5 additions and 4 deletions
|
@ -183,7 +183,7 @@ DoStartService(PMAIN_WND_INFO Info,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lpArgsVector)
|
if (lpArgsVector)
|
||||||
LocalFree(lpArgsVector);
|
LocalFree((LPVOID)lpArgsVector);
|
||||||
|
|
||||||
return bRet;
|
return bRet;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ add_definitions(-D__USE_W32_SOCKETS)
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
main.c
|
main.c
|
||||||
cmdstart.c
|
cmdStart.c
|
||||||
cmdStop.c
|
cmdStop.c
|
||||||
cmdHelpMsg.c
|
cmdHelpMsg.c
|
||||||
cmdPause.c
|
cmdPause.c
|
||||||
|
|
|
@ -142,7 +142,7 @@ StartOneService(INT argc, WCHAR **argv)
|
||||||
|
|
||||||
done:
|
done:
|
||||||
if (lpArgVectors != NULL)
|
if (lpArgVectors != NULL)
|
||||||
HeapFree(GetProcessHeap(), 0, lpArgVectors);
|
HeapFree(GetProcessHeap(), 0, (LPVOID)lpArgVectors);
|
||||||
|
|
||||||
if (hService != NULL)
|
if (hService != NULL)
|
||||||
CloseServiceHandle(hService);
|
CloseServiceHandle(hService);
|
|
@ -37,7 +37,8 @@ add_compile_flags("/wd4290")
|
||||||
# for C++ programs, the compiler error C2440 is issued)
|
# for C++ programs, the compiler error C2440 is issued)
|
||||||
# - C4098: void function returning a value
|
# - C4098: void function returning a value
|
||||||
# - C4700: uninitialized variable usage
|
# - 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
|
# Debugging
|
||||||
#if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
#if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue