File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -220,7 +220,13 @@ IF(MSVC)
220220 # Disable warnings about unsafe C functions; we could use the safe C99 & C11 versions if we have no need for supporting old compilers.
221221 ADD_DEFINITIONS (-D_UNICODE -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS )
222222 ADD_DEFINITIONS (-bigobj ) # required for building the big ifcXXX.objs, https://msdn.microsoft.com/en-us/library/ms173499.aspx
223-
223+ # Bump up the warning level from the default 3 to 4. Disable warning C4100 ("'identifier' : unreferenced formal parameter")
224+ # (too much spam)
225+ ADD_DEFINITIONS (-W4 -wd4100 )
226+ # and on VS > 2013 C4458 ("declaration of 'indentifier' hides class member") (overeager and false positives), at least for now.
227+ IF (MSVC_VERSION GREATER 1800)
228+ ADD_DEFINITIONS (-wd4458 )
229+ ENDIF ()
224230 # Link against the static VC runtime
225231 FOREACH (flag CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_MINSIZEREL
226232 CMAKE_CXX_FLAGS_RELWITHDEBINFO CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE
You can’t perform that action at this time.
0 commit comments