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

CMakeLists: Enforce C5233 on MSVC

This is similar to Clang's -Wunused-lambda-capture
Morph пре 3 година
родитељ
комит
b02c3f2314
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/CMakeLists.txt

+ 1 - 0
src/CMakeLists.txt

@@ -75,6 +75,7 @@ if (MSVC)
         /we4555 # Expression has no effect; expected expression with side-effect
         /we4826 # Conversion from 'type1' to 'type2' is sign-extended. This may cause unexpected runtime behavior.
         /we5038 # data member 'member1' will be initialized after data member 'member2'
+        /we5233 # explicit lambda capture 'identifier' is not used
         /we5245 # 'function': unreferenced function with internal linkage has been removed
 
         /wd4100 # 'identifier': unreferenced formal parameter