Module Name: src
Committed By: fox
Date: Sat May 2 19:35:03 UTC 2020
Modified Files:
src/external/bsd/dhcpcd/sbin/dhcpcd: Makefile
Log Message:
external/bsd/dhcpcd: Suppress -Werror=sign-conversion error.
Add -Wno-error=sign-conversion to prevent build failure, when run with
MKLIBCSANITIZER=yes.
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.51 -r1.52 src/external/bsd/dhcpcd/sbin/dhcpcd/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/dhcpcd/sbin/dhcpcd/Makefile
diff -u src/external/bsd/dhcpcd/sbin/dhcpcd/Makefile:1.51 src/external/bsd/dhcpcd/sbin/dhcpcd/Makefile:1.52
--- src/external/bsd/dhcpcd/sbin/dhcpcd/Makefile:1.51 Thu Apr 2 12:56:01 2020
+++ src/external/bsd/dhcpcd/sbin/dhcpcd/Makefile Sat May 2 19:35:03 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.51 2020/04/02 12:56:01 roy Exp $
+# $NetBSD: Makefile,v 1.52 2020/05/02 19:35:03 fox Exp $
#
WARNS?= 6
@@ -32,6 +32,13 @@ SRCS+= auth.c
CPPFLAGS+= -DINET
SRCS+= bpf.c dhcp.c ipv4.c
SRCS+= privsep-bpf.c
+
+.if (${MKLIBCSANITIZER:Uno} == "yes")
+.if (${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8)
+COPTS.dhcp.c+= -Wno-error=sign-conversion
+.endif
+.endif
+
.if !defined(SMALLPROG)
CPPFLAGS+= -DARP
SRCS+= arp.c