diff options
| author | fox <fox@NetBSD.org> | 2020-02-12 00:30:48 +0000 |
|---|---|---|
| committer | fox <fox@NetBSD.org> | 2020-02-12 00:30:48 +0000 |
| commit | 11f8e1cc9c4d62fb6f21f3340da93ecb7d4624c4 (patch) | |
| tree | afb32643f58c45e8cbd001c09452081ff7bffb52 /external/bsd/ipf | |
| parent | b71e843ccb11b90b1b3b1c97e6dee0fc64f15d8f (diff) | |
external/bsd/ipf: Fix build failure under LLVM.
-Wno-error= flag now only applies to gcc 8 and not to LLVM based builds.
Reviewed by: kamil@
Diffstat (limited to 'external/bsd/ipf')
| -rw-r--r-- | external/bsd/ipf/bin/ipmon/Makefile | 4 | ||||
| -rw-r--r-- | external/bsd/ipf/bin/ipsend/Makefile | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/external/bsd/ipf/bin/ipmon/Makefile b/external/bsd/ipf/bin/ipmon/Makefile index 930ff25137c..7aea4973c10 100644 --- a/external/bsd/ipf/bin/ipmon/Makefile +++ b/external/bsd/ipf/bin/ipmon/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2020/02/09 07:47:50 fox Exp $ +# $NetBSD: Makefile,v 1.3 2020/02/12 00:30:48 fox Exp $ PROG= ipmon SRCS= ipmon.c ipmon_y.c ipmon_l.c @@ -11,7 +11,7 @@ DPSRCS+= ipmon_l.h ipmon_y.h CLEANFILES+= ipmon_y.c ipmon_y.h CLEANFILES+= ipmon_l.c ipmon_l.h -COPTS.ipmon.c+= -Wno-error=format-overflow +COPTS.ipmon.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-error=format-overflow :} ipmon_y.c: ipmon_y.y ${_MKTARGET_CREATE} diff --git a/external/bsd/ipf/bin/ipsend/Makefile b/external/bsd/ipf/bin/ipsend/Makefile index dbbca0a6bff..af797790118 100644 --- a/external/bsd/ipf/bin/ipsend/Makefile +++ b/external/bsd/ipf/bin/ipsend/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2020/02/09 07:51:20 fox Exp $ +# $NetBSD: Makefile,v 1.5 2020/02/12 00:30:48 fox Exp $ .include <bsd.own.mk> .include "../Makefile.inc" @@ -25,7 +25,7 @@ DPSRCS+= iplang_y.h .PATH: ${UDIST}/ipsend \ ${UDIST}/iplang -COPTS.ipsopt.c+= -Wno-error=maybe-uninitialized +COPTS.ipsopt.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-error=maybe-uninitialized :} iplang_y.c: iplang_y.y ${_MKTARGET_CREATE} |
