summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 1c3dde31d..65a4922ea 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -45,14 +45,23 @@ if (MSVC)
45 /Zc:inline 45 /Zc:inline
46 /Zc:throwingNew 46 /Zc:throwingNew
47 47
48 # External headers diagnostics
49 /experimental:external # Enables the external headers options. This option isn't required in Visual Studio 2019 version 16.10 and later
50 /external:anglebrackets # Treats all headers included by #include <header>, where the header file is enclosed in angle brackets (< >), as external headers
51 /external:W0 # Sets the default warning level to 0 for external headers, effectively turning off warnings for external headers
52
48 # Warnings 53 # Warnings
49 /W3 54 /W3
50 /we4062 # enumerator 'identifier' in a switch of enum 'enumeration' is not handled 55 /we4018 # 'expression': signed/unsigned mismatch
56 /we4062 # Enumerator 'identifier' in a switch of enum 'enumeration' is not handled
51 /we4101 # 'identifier': unreferenced local variable 57 /we4101 # 'identifier': unreferenced local variable
52 /we4189 # 'identifier': local variable is initialized but not referenced 58 /we4189 # 'identifier': local variable is initialized but not referenced
53 /we4265 # 'class': class has virtual functions, but destructor is not virtual 59 /we4265 # 'class': class has virtual functions, but destructor is not virtual
54 /we4388 # signed/unsigned mismatch 60 /we4267 # 'var': conversion from 'size_t' to 'type', possible loss of data
55 /we4547 # 'operator' : operator before comma has no effect; expected operator with side-effect 61 /we4305 # 'context': truncation from 'type1' to 'type2'
62 /we4388 # 'expression': signed/unsigned mismatch
63 /we4389 # 'operator': signed/unsigned mismatch
64 /we4547 # 'operator': operator before comma has no effect; expected operator with side-effect
56 /we4549 # 'operator1': operator before comma has no effect; did you intend 'operator2'? 65 /we4549 # 'operator1': operator before comma has no effect; did you intend 'operator2'?
57 /we4555 # Expression has no effect; expected expression with side-effect 66 /we4555 # Expression has no effect; expected expression with side-effect
58 /we4715 # 'function': not all control paths return a value 67 /we4715 # 'function': not all control paths return a value