diff options
| author | 2022-10-21 02:34:06 -0400 | |
|---|---|---|
| committer | 2022-10-22 15:02:04 -0400 | |
| commit | f3c40f4a208117ceb49396a381702b01c40efdb0 (patch) | |
| tree | 9c39b4fbc68bb744aa93194b42492b9f2acec5d7 | |
| parent | general: Enforce C4800 everywhere except in video_core (diff) | |
| download | yuzu-f3c40f4a208117ceb49396a381702b01c40efdb0.tar.gz yuzu-f3c40f4a208117ceb49396a381702b01c40efdb0.tar.xz yuzu-f3c40f4a208117ceb49396a381702b01c40efdb0.zip | |
CMakeLists: Treat MSVC warnings as errors
| -rw-r--r-- | src/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/common/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/input_common/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/shader_recompiler/CMakeLists.txt | 1 |
4 files changed, 2 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cfd80886c..397c1fa23 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt | |||
| @@ -58,6 +58,8 @@ if (MSVC) | |||
| 58 | 58 | ||
| 59 | # Warnings | 59 | # Warnings |
| 60 | /W3 | 60 | /W3 |
| 61 | /WX | ||
| 62 | |||
| 61 | /we4018 # 'expression': signed/unsigned mismatch | 63 | /we4018 # 'expression': signed/unsigned mismatch |
| 62 | /we4062 # Enumerator 'identifier' in a switch of enum 'enumeration' is not handled | 64 | /we4062 # Enumerator 'identifier' in a switch of enum 'enumeration' is not handled |
| 63 | /we4101 # 'identifier': unreferenced local variable | 65 | /we4101 # 'identifier': unreferenced local variable |
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 043f27fb1..72c406fe1 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt | |||
| @@ -156,7 +156,6 @@ if (MSVC) | |||
| 156 | ) | 156 | ) |
| 157 | target_compile_options(common PRIVATE | 157 | target_compile_options(common PRIVATE |
| 158 | /W4 | 158 | /W4 |
| 159 | /WX | ||
| 160 | 159 | ||
| 161 | /we4242 # 'identifier': conversion from 'type1' to 'type2', possible loss of data | 160 | /we4242 # 'identifier': conversion from 'type1' to 'type2', possible loss of data |
| 162 | /we4244 # 'conversion': conversion from 'type1' to 'type2', possible loss of data | 161 | /we4244 # 'conversion': conversion from 'type1' to 'type2', possible loss of data |
diff --git a/src/input_common/CMakeLists.txt b/src/input_common/CMakeLists.txt index d2730bdc1..bff75338e 100644 --- a/src/input_common/CMakeLists.txt +++ b/src/input_common/CMakeLists.txt | |||
| @@ -39,7 +39,6 @@ add_library(input_common STATIC | |||
| 39 | if (MSVC) | 39 | if (MSVC) |
| 40 | target_compile_options(input_common PRIVATE | 40 | target_compile_options(input_common PRIVATE |
| 41 | /W4 | 41 | /W4 |
| 42 | /WX | ||
| 43 | 42 | ||
| 44 | /we4242 # 'identifier': conversion from 'type1' to 'type2', possible loss of data | 43 | /we4242 # 'identifier': conversion from 'type1' to 'type2', possible loss of data |
| 45 | /we4244 # 'conversion': conversion from 'type1' to 'type2', possible loss of data | 44 | /we4244 # 'conversion': conversion from 'type1' to 'type2', possible loss of data |
diff --git a/src/shader_recompiler/CMakeLists.txt b/src/shader_recompiler/CMakeLists.txt index 967da0791..bde1c1329 100644 --- a/src/shader_recompiler/CMakeLists.txt +++ b/src/shader_recompiler/CMakeLists.txt | |||
| @@ -241,7 +241,6 @@ target_link_libraries(shader_recompiler PUBLIC common fmt::fmt sirit) | |||
| 241 | if (MSVC) | 241 | if (MSVC) |
| 242 | target_compile_options(shader_recompiler PRIVATE | 242 | target_compile_options(shader_recompiler PRIVATE |
| 243 | /W4 | 243 | /W4 |
| 244 | /WX | ||
| 245 | 244 | ||
| 246 | /we4242 # 'identifier': conversion from 'type1' to 'type2', possible loss of data | 245 | /we4242 # 'identifier': conversion from 'type1' to 'type2', possible loss of data |
| 247 | /we4244 # 'argument' : conversion from 'type1' to 'type2', possible loss of data (floating-point) | 246 | /we4244 # 'argument' : conversion from 'type1' to 'type2', possible loss of data (floating-point) |