Make MSVC warning C4020 "Too many actual parameters" an error
CORE-7960 #resolve #comment Committed in revision 62361.

svn path=/trunk/; revision=62361
This commit is contained in:
Hermès Bélusca-Maïto 2014-02-28 23:34:32 +00:00
parent 9892a47037
commit 4644ad4140

View file

@ -43,6 +43,7 @@ add_compile_flags("/wd4290")
# The following warnings are treated as errors: # The following warnings are treated as errors:
# - C4013: implicit function declaration # - C4013: implicit function declaration
# - C4020: too many actual parameters
# - C4022: pointer type mismatch for parameter # - C4022: pointer type mismatch for parameter
# - TODO: C4028: formal parameter different from declaration # - TODO: C4028: formal parameter different from declaration
# - C4047: different level of indirection # - C4047: different level of indirection
@ -55,7 +56,7 @@ add_compile_flags("/wd4290")
# - C4229: modifiers on data are ignored # - C4229: modifiers on data are ignored
# - C4700: uninitialized variable usage # - C4700: uninitialized variable usage
# - C4603: macro is not defined or definition is different after precompiled header use # - C4603: macro is not defined or definition is different after precompiled header use
add_compile_flags("/we4013 /we4022 /we4047 /we4098 /we4113 /we4129 /we4229 /we4700 /we4603") add_compile_flags("/we4013 /we4020 /we4022 /we4047 /we4098 /we4113 /we4129 /we4229 /we4700 /we4603")
# Enable warnings above the default level, but don't treat them as errors: # Enable warnings above the default level, but don't treat them as errors:
# - C4115: named type definition in parentheses # - C4115: named type definition in parentheses