Преглед изворни кода

ci: fix msvc when used with LTO (#11459)

liamwhite пре 2 година
родитељ
комит
66f2947854
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/CMakeLists.txt

+ 1 - 0
src/CMakeLists.txt

@@ -85,6 +85,7 @@ if (MSVC)
         /wd4100 # 'identifier': unreferenced formal parameter
         /wd4100 # 'identifier': unreferenced formal parameter
         /wd4324 # 'struct_name': structure was padded due to __declspec(align())
         /wd4324 # 'struct_name': structure was padded due to __declspec(align())
         /wd4201 # nonstandard extension used : nameless struct/union
         /wd4201 # nonstandard extension used : nameless struct/union
+        /wd4702 # unreachable code (when used with LTO)
     )
     )
 
 
     if (USE_CCACHE OR YUZU_USE_PRECOMPILED_HEADERS)
     if (USE_CCACHE OR YUZU_USE_PRECOMPILED_HEADERS)