mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[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... svn path=/trunk/; revision=60100
This commit is contained in:
parent
e66dc8a754
commit
38db7e5e01
1 changed files with 7 additions and 3 deletions
|
@ -31,9 +31,13 @@ endif ()
|
||||||
# C++ exception specification ignored... yeah we don't care
|
# C++ exception specification ignored... yeah we don't care
|
||||||
add_compile_flags("/wd4290")
|
add_compile_flags("/wd4290")
|
||||||
|
|
||||||
# different level of indirection, void function returning a value and
|
# The following warnings are treated as errors:
|
||||||
# uninitialized variable usage should be errors.
|
# - C4047: different level of indirection
|
||||||
add_compile_flags("/we4047 /we4098 /we4700")
|
# - 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
|
# Debugging
|
||||||
#if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
#if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
||||||
|
|
Loading…
Reference in a new issue