Skip to content

Commit e1adb6c

Browse files
committed
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.
1 parent be54504 commit e1adb6c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

win32/Makefile.sub

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,10 @@ WARNFLAGS = -W2 -wd4100 -wd4127 -wd4210 -wd4214 -wd4255 -wd4574 \
286286
!else
287287
WARNFLAGS = -W2
288288
!endif
289+
!if $(MSC_VER) >= 1944
290+
# https://developercommunity.visualstudio.com/t/warning-C5287:-operands-are-different-e/10877942
291+
WARNFLAGS = $(WARNFLAGS) -wd5287
292+
!endif
289293
!endif
290294
WERRORFLAG = -WX
291295
!if !defined(CFLAGS_NO_ARCH)

0 commit comments

Comments
 (0)