From a79798285dfc49f63022d4f3aaa1a0da7b49bafa Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 13 Jul 2021 22:08:45 +0300 Subject: [PATCH] Add 'unused variable' warning on MSVC. --- options_win.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/options_win.cmake b/options_win.cmake index cf94d56..fed51de 100644 --- a/options_win.cmake +++ b/options_win.cmake @@ -25,6 +25,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") /w14834 # [[nodiscard]] /w15038 # wrong initialization order /w14265 # class has virtual functions, but destructor is not virtual + /w14101 # 'identifier' : unreferenced local variable /wd4068 # Disable "warning C4068: unknown pragma" /wd4267 # 'initializing': conversion from 'size_t' to 'int', possible loss of data. /wd4244 # '=': conversion from 'size_t' to 'int', possible loss of data.