Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

General: Catch more expressions with no effect on MSVC

Lioncash5c7f20bc57eb
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 29c6ffc678..030cce92c5 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -45,6 +45,10 @@ if (MSVC)
# Warnings
/W3
+ /we4547 # 'operator' : operator before comma has no effect; expected operator with side-effect
+ /we4548 # Expression before comma has no effect; expected expression with side-effect
+ /we4549 # 'operator1': operator before comma has no effect; did you intend 'operator2'?
+ /we4555 # Expression has no effect; expected expression with side-effect
/we4834 # Discarding return value of function with 'nodiscard' attribute
)