Author: hbelusca
Date: Sat Sep 14 13:18:51 2013
New Revision: 60100
URL: http://svn.reactos.org/svn/reactos?rev=60100&view=rev
Log:
[CMAKE:MSVC]
Add warning C4090 (different 'modifier' qualifiers -- for C programs only; for C++ programs, the compiler error C2440 is issued --) as an error (usually, when I hit this warning, it means that I'm doing an error in my code...). This warning can be caused when a pointer to a const or volatile item is assigned to a pointer not declared as pointing to const or volatile.
This warning is already treated as an error by GCC...
Modified:
trunk/reactos/cmake/msvc.cmake
Modified: trunk/reactos/cmake/msvc.cmake
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/msvc.cmake?rev=60100…
==============================================================================
--- trunk/reactos/cmake/msvc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/msvc.cmake [iso-8859-1] Sat Sep 14 13:18:51 2013
@@ -31,9 +31,13 @@
# C++ exception specification ignored... yeah we don't care
add_compile_flags("/wd4290")
-# different level of indirection, void function returning a value and
-# uninitialized variable usage should be errors.
-add_compile_flags("/we4047 /we4098 /we4700")
+# The following warnings are treated as errors:
+# - C4047: different level of indirection
+# - C4090: different 'modifier' qualifiers (for C programs only;
+# 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")
# Debugging
#if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")