diff options
Diffstat (limited to 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a22b564d6..61adbef28 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt | |||
| @@ -45,10 +45,15 @@ if (MSVC) | |||
| 45 | 45 | ||
| 46 | # Warnings | 46 | # Warnings |
| 47 | /W3 | 47 | /W3 |
| 48 | /we4062 # enumerator 'identifier' in a switch of enum 'enumeration' is not handled | ||
| 49 | /we4101 # 'identifier': unreferenced local variable | ||
| 50 | /we4265 # 'class': class has virtual functions, but destructor is not virtual | ||
| 51 | /we4388 # signed/unsigned mismatch | ||
| 48 | /we4547 # 'operator' : operator before comma has no effect; expected operator with side-effect | 52 | /we4547 # 'operator' : operator before comma has no effect; expected operator with side-effect |
| 49 | /we4549 # 'operator1': operator before comma has no effect; did you intend 'operator2'? | 53 | /we4549 # 'operator1': operator before comma has no effect; did you intend 'operator2'? |
| 50 | /we4555 # Expression has no effect; expected expression with side-effect | 54 | /we4555 # Expression has no effect; expected expression with side-effect |
| 51 | /we4834 # Discarding return value of function with 'nodiscard' attribute | 55 | /we4834 # Discarding return value of function with 'nodiscard' attribute |
| 56 | /we5038 # data member 'member1' will be initialized after data member 'member2' | ||
| 52 | ) | 57 | ) |
| 53 | 58 | ||
| 54 | # /GS- - No stack buffer overflow checks | 59 | # /GS- - No stack buffer overflow checks |
| @@ -62,6 +67,7 @@ else() | |||
| 62 | -Werror=implicit-fallthrough | 67 | -Werror=implicit-fallthrough |
| 63 | -Werror=missing-declarations | 68 | -Werror=missing-declarations |
| 64 | -Werror=reorder | 69 | -Werror=reorder |
| 70 | -Werror=uninitialized | ||
| 65 | -Werror=unused-result | 71 | -Werror=unused-result |
| 66 | -Wextra | 72 | -Wextra |
| 67 | -Wmissing-declarations | 73 | -Wmissing-declarations |