diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-16 07:50:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-16 07:50:15 +0400 |
commit | 78bd029bbe5631fa42739c2c5ec2de0fe80932c5 (patch) | |
tree | 973e76d21aa4a7755012b9902c52f15a9377d5ef /CMakeLists.txt | |
parent | 7c69215933f70473313b4eef87dd261df5346003 (diff) |
MSVC: add errors for BLI_strict_flags.h
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6836121fdc3..b022233becb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1001,7 +1001,23 @@ elseif(WIN32) set(CMAKE_C_FLAGS_RELWITHDEBINFO "/O2 /Ob1 /MT /Zi /MP" CACHE STRING "MSVC MT flags " FORCE) # most msvc warnings are C & C++ - set(_WARNINGS "/W3 /wd4018 /wd4244 /wd4305 /wd4800 /wd4181 /wd4065 /wd4267 /we4013 /wd4200") + set(_WARNINGS + # warning level: + "/W3" + # disable: + "/wd4018" # signed/unsigned mismatch + "/wd4065" # switch statement contains 'default' but no 'case' labels + "/wd4181" # qualifier applied to reference type; ignored + "/wd4200" # zero-sized array in struct/union + "/wd4244" # conversion from 'type1' to 'type2', possible loss of data + "/wd4267" # conversion from 'size_t' to 'type', possible loss of data + "/wd4305" # truncation from 'type1' to 'type2' + "/wd4800" # forcing value to bool 'true' or 'false' + # errors: + "/we4013" # 'function' undefined; assuming extern returning int + ) + + string(REPLACE ";" " " _WARNINGS "${_WARNINGS}") set(C_WARNINGS "${_WARNINGS}") set(CXX_WARNINGS "${_WARNINGS}") unset(_WARNINGS) |