From 18c1cb68fd9b49751344f09413307d80a346f1f9 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Fri, 8 Nov 2019 17:14:21 -0300 Subject: [PATCH] video_core: Treat implicit conversions as errors --- src/video_core/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) 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) 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-sign-conversion) +endif()