summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-01-09 00:21:53 -0300
committerGravatar ReinUsesLisp2021-01-09 02:19:17 -0300
commitd7128845c95353f0a4d1518ac7c1d32060d7957b (patch)
tree77b7fe5542e1d5cc2d92ad3ea7410c6b95eca449 /src
parentfile_sys/registered_cache: Silence virtual functions without override warnings (diff)
downloadyuzu-d7128845c95353f0a4d1518ac7c1d32060d7957b.tar.gz
yuzu-d7128845c95353f0a4d1518ac7c1d32060d7957b.tar.xz
yuzu-d7128845c95353f0a4d1518ac7c1d32060d7957b.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 8777df751..daf251d19 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -45,10 +45,14 @@ if (MSVC)
45 45
46 # Warnings 46 # Warnings
47 /W3 47 /W3
48 /we4062 # enumerator 'identifier' in a switch of enum 'enumeration' is not handled
49 /we4265 # 'class': class has virtual functions, but destructor is not virtual
50 /we4388 # signed/unsigned mismatch
48 /we4547 # 'operator' : operator before comma has no effect; expected operator with side-effect 51 /we4547 # 'operator' : operator before comma has no effect; expected operator with side-effect
49 /we4549 # 'operator1': operator before comma has no effect; did you intend 'operator2'? 52 /we4549 # 'operator1': operator before comma has no effect; did you intend 'operator2'?
50 /we4555 # Expression has no effect; expected expression with side-effect 53 /we4555 # Expression has no effect; expected expression with side-effect
51 /we4834 # Discarding return value of function with 'nodiscard' attribute 54 /we4834 # Discarding return value of function with 'nodiscard' attribute
55 /we5038 # data member 'member1' will be initialized after data member 'member2'
52 ) 56 )
53 57
54 # /GS- - No stack buffer overflow checks 58 # /GS- - No stack buffer overflow checks