summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMai M <mathew1800@gmail.com>2021-07-04 22:16:28 -0400
committerGitHub <noreply@github.com>2021-07-04 22:16:28 -0400
commit669cef2da3370bcf76fe91dd3bf7084f37cd7e9b (patch)
tree046ea6039ed8c867220b182d7592e72f13a0c44a
parenteb0e10cff2496fbf91362aa1e399b1d0b9a1d808 (diff)
parent3a3f4983b67e436a630f3b11dd47183f6ea2229d (diff)
Merge pull request #6552 from Morph1984/c4189-msvc
CMakeLists: Enforce C4189 on MSVC
-rw-r--r--src/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f30dd49a3..1c3dde31d 100644
--- a/src/CMakeLists.txt
+++ b/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