diff options
| author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2019-11-13 02:16:22 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-13 02:16:22 -0300 |
| commit | cf770a68a528cdb7f3a5483f6d17eeb924e37b7e (patch) | |
| tree | 6406933e26e9fbe255a04b4c0810d21b05815494 /src/video_core/CMakeLists.txt | |
| parent | d1f0d182a73f79f7b82751f4ac1502e7eb9bba76 (diff) | |
| parent | fb9418798d9421128c17a52c2b0160d71f015db0 (diff) | |
Merge pull request #3084 from ReinUsesLisp/cast-warnings
video_core: Treat implicit conversions as errors
Diffstat (limited to 'src/video_core/CMakeLists.txt')
| -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..45d8eaf23 100644 --- a/src/video_core/CMakeLists.txt +++ b/src/video_core/CMakeLists.txt @@ -180,3 +180,9 @@ target_link_libraries(video_core PRIVATE glad) if (ENABLE_VULKAN) target_link_libraries(video_core PRIVATE sirit) endif() + +if (MSVC) + target_compile_options(video_core PRIVATE /we4267) +else() + target_compile_options(video_core PRIVATE -Werror=conversion -Wno-error=sign-conversion) +endif() |
