- Make C4022 (pointer type mismatch) and C4129 (unrecognized escape sequence) into errors
CORE-7538

svn path=/trunk/; revision=60870
This commit is contained in:
Thomas Faber 2013-11-05 20:52:36 +00:00
parent 3def5beaf4
commit 54f8e25e93

View file

@ -37,13 +37,17 @@ endif ()
add_compile_flags("/wd4290") add_compile_flags("/wd4290")
# The following warnings are treated as errors: # The following warnings are treated as errors:
# - TODO: C4013: implicit function declaration
# - C4022: pointer type mismatch for parameter
# - TODO: C4028: formal parameter different from declaration
# - C4047: different level of indirection # - C4047: different level of indirection
# - C4090: different 'modifier' qualifiers (for C programs only; # - TODO: C4090: different 'modifier' qualifiers (for C programs only;
# 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
# - C4129: unrecognized escape sequence
# - TODO: C4133: incompatible types
# - C4700: uninitialized variable usage # - C4700: uninitialized variable usage
##add_compile_flags("/we4047 /we4090 /we4098 /we4700") add_compile_flags("/we4022 /we4047 /we4098 /we4129 /we4700")
add_compile_flags("/we4047 /we4098 /we4700")
# Debugging # Debugging
#if(${CMAKE_BUILD_TYPE} STREQUAL "Debug") #if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")