1
0
Fork 0
forked from suyu/suyu

CMakeLists: Enforce C4018, C4267, C4305, C4389

This commit is contained in:
Morph 2021-06-28 03:55:21 -04:00
parent e828c5a559
commit 0eae00e263

View file

@ -47,11 +47,15 @@ if (MSVC)
# Warnings # Warnings
/W3 /W3
/we4062 # enumerator 'identifier' in a switch of enum 'enumeration' is not handled /we4018 # 'expression': signed/unsigned mismatch
/we4062 # Enumerator 'identifier' in a switch of enum 'enumeration' is not handled
/we4101 # 'identifier': unreferenced local variable /we4101 # 'identifier': unreferenced local variable
/we4265 # 'class': class has virtual functions, but destructor is not virtual /we4265 # 'class': class has virtual functions, but destructor is not virtual
/we4388 # signed/unsigned mismatch /we4267 # 'var': conversion from 'size_t' to 'type', possible loss of data
/we4547 # 'operator' : operator before comma has no effect; expected operator with side-effect /we4305 # 'context': truncation from 'type1' to 'type2'
/we4388 # 'expression': signed/unsigned mismatch
/we4389 # 'operator': signed/unsigned mismatch
/we4547 # 'operator': operator before comma has no effect; expected operator with side-effect
/we4549 # 'operator1': operator before comma has no effect; did you intend 'operator2'? /we4549 # 'operator1': operator before comma has no effect; did you intend 'operator2'?
/we4555 # Expression has no effect; expected expression with side-effect /we4555 # Expression has no effect; expected expression with side-effect
/we4715 # 'function': not all control paths return a value /we4715 # 'function': not all control paths return a value