[NET][SERVMAN]: Fix warning C4090.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 14 Sep 2013 14:51:56 +0000 (14:51 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 14 Sep 2013 14:51:56 +0000 (14:51 +0000)
[CMAKE]: Temporarily reconsider C4090 as a warning, otherwise we would have to fix ~= 33 problems in Wine dlls.

svn path=/trunk/; revision=60102

reactos/base/applications/mscutils/servman/start.c
reactos/base/applications/network/net/CMakeLists.txt
reactos/base/applications/network/net/cmdStart.c [moved from reactos/base/applications/network/net/cmdstart.c with 98% similarity]
reactos/cmake/msvc.cmake

index 504483f..1af7714 100644 (file)
@@ -183,7 +183,7 @@ DoStartService(PMAIN_WND_INFO Info,
     }
 
     if (lpArgsVector)
-        LocalFree(lpArgsVector);
+        LocalFree((LPVOID)lpArgsVector);
 
     return bRet;
 }
index 728cb07..4386350 100644 (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
@@ -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);
index 53fe600..5bd26c0 100644 (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")