diff options
Diffstat (limited to '')
| -rw-r--r-- | src/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 71efbb40d..29c6ffc67 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt | |||
| @@ -32,7 +32,6 @@ if (MSVC) | |||
| 32 | # /Zc:inline - Let codegen omit inline functions in object files | 32 | # /Zc:inline - Let codegen omit inline functions in object files |
| 33 | # /Zc:throwingNew - Let codegen assume `operator new` (without std::nothrow) will never return null | 33 | # /Zc:throwingNew - Let codegen assume `operator new` (without std::nothrow) will never return null |
| 34 | add_compile_options( | 34 | add_compile_options( |
| 35 | /W3 | ||
| 36 | /MP | 35 | /MP |
| 37 | /Zi | 36 | /Zi |
| 38 | /Zo | 37 | /Zo |
| @@ -43,6 +42,10 @@ if (MSVC) | |||
| 43 | /Zc:externConstexpr | 42 | /Zc:externConstexpr |
| 44 | /Zc:inline | 43 | /Zc:inline |
| 45 | /Zc:throwingNew | 44 | /Zc:throwingNew |
| 45 | |||
| 46 | # Warnings | ||
| 47 | /W3 | ||
| 48 | /we4834 # Discarding return value of function with 'nodiscard' attribute | ||
| 46 | ) | 49 | ) |
| 47 | 50 | ||
| 48 | # /GS- - No stack buffer overflow checks | 51 | # /GS- - No stack buffer overflow checks |
| @@ -56,6 +59,7 @@ else() | |||
| 56 | -Werror=implicit-fallthrough | 59 | -Werror=implicit-fallthrough |
| 57 | -Werror=missing-declarations | 60 | -Werror=missing-declarations |
| 58 | -Werror=reorder | 61 | -Werror=reorder |
| 62 | -Werror=unused-result | ||
| 59 | -Wextra | 63 | -Wextra |
| 60 | -Wmissing-declarations | 64 | -Wmissing-declarations |
| 61 | -Wno-attributes | 65 | -Wno-attributes |