summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-05-26 20:11:41 +0900
committerNobuyoshi Nakada <[email protected]>2025-05-27 15:26:24 +0900
commite1adb6cb15129a54df0c55a337e98b92b2a55e3f (patch)
tree3012d916561aad31c63037c827a6ed2c27694da9
parentbe5450467b9d8cd461e2efd0ea9bd57cf001c05c (diff)
Win: Suppress false warnings from Visual C 17.14.1
https://developercommunity.visualstudio.com/t/warning-C5287:-operands-are-different-e/10877942? It is not able to silence "operands are different enum types" warnings, even using an explicit cast, as the message says.
-rw-r--r--win32/Makefile.sub4
1 files changed, 4 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 80225c3063..7c125a4a02 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -286,6 +286,10 @@ WARNFLAGS = -W2 -wd4100 -wd4127 -wd4210 -wd4214 -wd4255 -wd4574 \
!else
WARNFLAGS = -W2
!endif
+!if $(MSC_VER) >= 1944
+# https://developercommunity.visualstudio.com/t/warning-C5287:-operands-are-different-e/10877942
+WARNFLAGS = $(WARNFLAGS) -wd5287
+!endif
!endif
WERRORFLAG = -WX
!if !defined(CFLAGS_NO_ARCH)