diff options
| author | 2019-11-08 17:14:21 -0300 | |
|---|---|---|
| committer | 2019-11-08 22:49:39 +0000 | |
| commit | 18c1cb68fd9b49751344f09413307d80a346f1f9 (patch) | |
| tree | 23e1665d31c56b6a4274d62430470f5f81c7c4d0 /src | |
| parent | video_core: Silence implicit conversion warnings (diff) | |
| download | yuzu-18c1cb68fd9b49751344f09413307d80a346f1f9.tar.gz yuzu-18c1cb68fd9b49751344f09413307d80a346f1f9.tar.xz yuzu-18c1cb68fd9b49751344f09413307d80a346f1f9.zip | |
video_core: Treat implicit conversions as errors
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt index c911c6ec4..35e933858 100644 --- a/src/video_core/CMakeLists.txt +++ b/src/video_core/CMakeLists.txt | |||
| @@ -180,3 +180,9 @@ target_link_libraries(video_core PRIVATE glad) | |||
| 180 | if (ENABLE_VULKAN) | 180 | if (ENABLE_VULKAN) |
| 181 | target_link_libraries(video_core PRIVATE sirit) | 181 | target_link_libraries(video_core PRIVATE sirit) |
| 182 | endif() | 182 | endif() |
| 183 | |||
| 184 | if (MSVC) | ||
| 185 | target_compile_options(video_core PRIVATE /we4267) | ||
| 186 | else() | ||
| 187 | target_compile_options(video_core PRIVATE -Werror=conversion -Wno-sign-conversion) | ||
| 188 | endif() | ||