yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

CMakeLists: Treat MSVC warnings as errors

This commit is contained in:
Morph 2022-10-21 02:34:06 -04:00
parent e6ab1f673b
commit f3c40f4a20
4 changed files with 2 additions and 3 deletions

View File

@ -58,6 +58,8 @@ if (MSVC)
# Warnings # Warnings
/W3 /W3
/WX
/we4018 # 'expression': signed/unsigned mismatch /we4018 # 'expression': signed/unsigned mismatch
/we4062 # Enumerator 'identifier' in a switch of enum 'enumeration' is not handled /we4062 # Enumerator 'identifier' in a switch of enum 'enumeration' is not handled
/we4101 # 'identifier': unreferenced local variable /we4101 # 'identifier': unreferenced local variable

View File

@ -156,7 +156,6 @@ if (MSVC)
) )
target_compile_options(common PRIVATE target_compile_options(common PRIVATE
/W4 /W4
/WX
/we4242 # 'identifier': conversion from 'type1' to 'type2', possible loss of data /we4242 # 'identifier': conversion from 'type1' to 'type2', possible loss of data
/we4244 # 'conversion': conversion from 'type1' to 'type2', possible loss of data /we4244 # 'conversion': conversion from 'type1' to 'type2', possible loss of data

View File

@ -39,7 +39,6 @@ add_library(input_common STATIC
if (MSVC) if (MSVC)
target_compile_options(input_common PRIVATE target_compile_options(input_common PRIVATE
/W4 /W4
/WX
/we4242 # 'identifier': conversion from 'type1' to 'type2', possible loss of data /we4242 # 'identifier': conversion from 'type1' to 'type2', possible loss of data
/we4244 # 'conversion': conversion from 'type1' to 'type2', possible loss of data /we4244 # 'conversion': conversion from 'type1' to 'type2', possible loss of data

View File

@ -241,7 +241,6 @@ target_link_libraries(shader_recompiler PUBLIC common fmt::fmt sirit)
if (MSVC) if (MSVC)
target_compile_options(shader_recompiler PRIVATE target_compile_options(shader_recompiler PRIVATE
/W4 /W4
/WX
/we4242 # 'identifier': conversion from 'type1' to 'type2', possible loss of data /we4242 # 'identifier': conversion from 'type1' to 'type2', possible loss of data
/we4244 # 'argument' : conversion from 'type1' to 'type2', possible loss of data (floating-point) /we4244 # 'argument' : conversion from 'type1' to 'type2', possible loss of data (floating-point)