Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/dhcpcd/sbin/dhcpcd external/bsd/dhcpcd: Suppres...



details:   https://anonhg.NetBSD.org/src/rev/7f2aebd8157a
branches:  trunk
changeset: 971732:7f2aebd8157a
user:      fox <fox%NetBSD.org@localhost>
date:      Sat May 02 19:35:03 2020 +0000

description:
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@

diffstat:

 external/bsd/dhcpcd/sbin/dhcpcd/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 650977cee851 -r 7f2aebd8157a external/bsd/dhcpcd/sbin/dhcpcd/Makefile
--- a/external/bsd/dhcpcd/sbin/dhcpcd/Makefile  Sat May 02 19:09:56 2020 +0000
+++ b/external/bsd/dhcpcd/sbin/dhcpcd/Makefile  Sat May 02 19:35:03 2020 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index