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/59fc419257f5
branches:  trunk
changeset: 1009767:59fc419257f5
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 8ea263e85050 -r 59fc419257f5 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