1
0
Fork 0

Add 'unused variable' warning on MSVC.

This commit is contained in:
John Preston 2021-07-13 22:08:45 +03:00
parent 1c8cfe49c5
commit a79798285d

View file

@ -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.