diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-07-03 05:51:31 -0400 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-07-03 05:51:31 -0400 |
commit | 3a3f4983b67e436a630f3b11dd47183f6ea2229d (patch) | |
tree | fe56dbc6317f04c97db9aa8b3867362829413d4f | |
parent | bab400daafaed898840c979e04717934cb977135 (diff) |
CMakeLists: Enforce C4189
This supplements C4101 by detecting initialized but unreferenced local variables
-rw-r--r-- | src/CMakeLists.txt | 1 |
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 |