From 995fae39b59ac2dd00a8d85d33fa67288cbf8c3b Mon Sep 17 00:00:00 2001 From: nhmall Date: Thu, 15 Dec 2022 08:39:30 -0500 Subject: [PATCH] spurious warning with visual studio 2017 Don't force on a particular warning in the nmake Makefile if compiling using the older visual studio 2017. Resolves #950 --- sys/windows/Makefile.nmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/windows/Makefile.nmake b/sys/windows/Makefile.nmake index aba7fb8ff..0877f49fd 100644 --- a/sys/windows/Makefile.nmake +++ b/sys/windows/Makefile.nmake @@ -851,8 +851,10 @@ scall = # but variadic argument ‘position’ has type ‘type’ # 4820 padding in struct ctmpflags = $(ctmpflags:-W3=-W4) -wd4100 -wd4244 -wd4245 -wd4310 -wd4706 -w44777 -wd4820 +!IF ($(VSVER) >= 2019) ctmpflags = $(ctmpflags) -w44774 !ENDIF +!ENDIF #More verbose warning output options below #ctmpflags = $(ctmpflags:-W4=-wd4131