瀏覽代碼

Merge pull request #6552 from Morph1984/c4189-msvc

CMakeLists: Enforce C4189 on MSVC
Mai M 5 年之前
父節點
當前提交
669cef2da3
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/CMakeLists.txt

+ 1 - 0
src/CMakeLists.txt

@@ -49,6 +49,7 @@ if (MSVC)
         /W3
         /we4062 # enumerator 'identifier' in a switch of enum 'enumeration' is not handled
         /we4101 # 'identifier': unreferenced local variable
+        /we4189 # 'identifier': local variable is initialized but not referenced
         /we4265 # 'class': class has virtual functions, but destructor is not virtual
         /we4388 # signed/unsigned mismatch
         /we4547 # 'operator' : operator before comma has no effect; expected operator with side-effect