Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
| Show First 20 Lines • Show All 1,640 Lines • ▼ Show 20 Lines | |||||
| elseif(CMAKE_C_COMPILER_ID MATCHES "MSVC") | elseif(CMAKE_C_COMPILER_ID MATCHES "MSVC") | ||||
| # most msvc warnings are C & C++ | # most msvc warnings are C & C++ | ||||
| set(_WARNINGS | set(_WARNINGS | ||||
| # warning level: | # warning level: | ||||
| "/W3" | "/W3" | ||||
| "/w34062" # switch statement contains 'default' but no 'case' labels | "/w34062" # switch statement contains 'default' but no 'case' labels | ||||
| "/w34115" # 'type' : named type definition in parentheses | "/w34115" # 'type' : named type definition in parentheses | ||||
| "/w34189" # local variable is initialized but not referenced | "/w34189" # local variable is initialized but not referenced | ||||
| "/w34456" # declaration of 'identifier' hides previous local declaration | |||||
| "/w34457" # declaration of 'identifier' hides function parameter | |||||
| # disable: | # disable: | ||||
| "/wd4018" # signed/unsigned mismatch | "/wd4018" # signed/unsigned mismatch | ||||
| "/wd4146" # unary minus operator applied to unsigned type, result still unsigned | "/wd4146" # unary minus operator applied to unsigned type, result still unsigned | ||||
| "/wd4065" # switch statement contains 'default' but no 'case' labels | "/wd4065" # switch statement contains 'default' but no 'case' labels | ||||
| "/wd4127" # conditional expression is constant | "/wd4127" # conditional expression is constant | ||||
| "/wd4181" # qualifier applied to reference type; ignored | "/wd4181" # qualifier applied to reference type; ignored | ||||
| "/wd4200" # zero-sized array in struct/union | "/wd4200" # zero-sized array in struct/union | ||||
| "/wd4244" # conversion from 'type1' to 'type2', possible loss of data | "/wd4244" # conversion from 'type1' to 'type2', possible loss of data | ||||
| ▲ Show 20 Lines • Show All 344 Lines • Show Last 20 Lines | |||||