Module Name:    src
Committed By:   fox
Date:           Sat Feb  8 13:33:56 UTC 2020

Modified Files:
        src/usr.bin/tftp: Makefile

Log Message:
user.bin/tftp: Suppress -Werror=format-overflow error.

Add -Wno-error=format-overflow tftp.c to prevent build failure.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/usr.bin/tftp/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/tftp/Makefile
diff -u src/usr.bin/tftp/Makefile:1.12 src/usr.bin/tftp/Makefile:1.13
--- src/usr.bin/tftp/Makefile:1.12	Fri Oct  4 09:47:28 2019
+++ src/usr.bin/tftp/Makefile	Sat Feb  8 13:33:56 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.12 2019/10/04 09:47:28 mrg Exp $
+#	$NetBSD: Makefile,v 1.13 2020/02/08 13:33:56 fox Exp $
 #	@(#)Makefile	8.1 (Berkeley) 6/6/93
 
 WARNS?=2
@@ -9,5 +9,6 @@ PROG=	tftp
 SRCS=	main.c tftp.c tftpsubs.c
 
 COPTS.tftp.c+=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-array-bounds :}
+COPTS.tftp.c+=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-error=format-overflow :}
 
 .include <bsd.prog.mk>

Reply via email to