]> granicus.if.org Git - nethack/commitdiff
Windows sys/winnt/Makefile.msc update
authornhmall <nhmall@nethack.org>
Sat, 6 Feb 2021 00:53:05 +0000 (19:53 -0500)
committernhmall <nhmall@nethack.org>
Sat, 6 Feb 2021 00:54:15 +0000 (19:54 -0500)
sys/winnt/Makefile.msc

index 6745afeaa56741b3cd5782adc86682c55179a1ad..4e3eed57a9cd005ea635555554161165db9ea316 100644 (file)
@@ -672,16 +672,17 @@ scall  =
 
 !IF ($(VSVER) >= 2012)
 #cflags = $(cflags:-W4=-W3)
+# 4100 unreferenced formal parameter
 # 4131 old-style declarator
-# 4820 padding in struct
-# 4706 assignment within conditional
 # 4244 conversion possible loss of data
 # 4245 conversion from 'char' to 'uchar', signed/unsigned mismatch
-# 4100 unreferenced formal parameter
+# 4310 a constant value is cast to a smaller type
+# 4706 assignment within conditional
 # 4774 format string is not a string literal (default is off at W4)
-#
-#cflags = $(cflags:-W3=-W4) -wd4131 -wd4820 -wd4706 -wd4244 -wd4245 -wd4100
-cflags = $(cflags:-W3=-W4) -wd4820 -wd4706 -wd4244 -wd4245 -wd4100 -wd4310 -w44774
+# 4777 format string requires an argument of type \91type\92,
+#      but variadic argument \91position\92 has type \91type\92
+# 4820 padding in struct
+cflags = $(cflags:-W3=-W4) -wd4100 -wd4244 -wd4245 -wd4310 -wd4706 -w44774 -w44777 -wd4820
 !ENDIF
 
 #More verbose warning output options below
@@ -839,7 +840,7 @@ DLB =
 #==========================================
 
 {$(LUASRC)}.c{$(OBJ)}.o:
-       @$(cc) $(cflagsBuild) -wd4701 -wd4702 $(CROSSCOMPILE) $(CROSSCOMPILE_TARGET) -Fo$@ $<
+       @$(cc) $(cflagsBuild) -wd4701 -wd4702 -wd4774 $(CROSSCOMPILE) $(CROSSCOMPILE_TARGET) -Fo$@ $<
 
 #==========================================
 #=============== TARGETS ==================