mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-12-18 16:56:19 +00:00
cmake: Enforce C4062, C4265, C4388, and C5038
This should match some warnings we treat as errors on gcc and clang, caching bugs early and reducing the number of instances where we have to edit commits to make CI happy when developing from Windows.
This commit is contained in:
parent
c68d0dc851
commit
d7128845c9
|
@ -45,10 +45,14 @@ if (MSVC)
|
||||||
|
|
||||||
# Warnings
|
# Warnings
|
||||||
/W3
|
/W3
|
||||||
|
/we4062 # enumerator 'identifier' in a switch of enum 'enumeration' is not handled
|
||||||
|
/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
|
/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
|
||||||
/we4834 # Discarding return value of function with 'nodiscard' attribute
|
/we4834 # Discarding return value of function with 'nodiscard' attribute
|
||||||
|
/we5038 # data member 'member1' will be initialized after data member 'member2'
|
||||||
)
|
)
|
||||||
|
|
||||||
# /GS- - No stack buffer overflow checks
|
# /GS- - No stack buffer overflow checks
|
||||||
|
|
Loading…
Reference in a new issue