external/cddl/osnet: Supress -Werror=maybe-uninitialized error in libdtrace.
It looks like this is a false positive, since the section of code triggering the error external/cddl/osnet/dist/lib/libdtrace/common/dt_proc.c:400:42: is only accessed after "err" is initialized. Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag. Reviewed by: kamil@
This commit is contained in:
parent
a1a4ef596e
commit
6594959c4a
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.26 2019/12/03 22:10:56 jmcneill Exp $
|
||||
# $NetBSD: Makefile,v 1.27 2020/03/17 00:50:12 fox Exp $
|
||||
|
||||
# $FreeBSD: head/cddl/lib/libdtrace/Makefile 314654 2017-03-04 11:30:04Z ngie $
|
||||
|
||||
|
@ -94,6 +94,12 @@ COPTS.dt_options.c += -Wno-parentheses
|
|||
COPTS.dt_pid.c += ${${ACTIVE_CC} == "gcc" :? -Wno-unused-but-set-variable :}
|
||||
COPTS.dt_isadep.c += -Wno-unused-variable
|
||||
|
||||
.if (${MKLIBCSANITIZER:Uno} == "yes")
|
||||
.if (${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8)
|
||||
COPTS.dt_proc.c+= -Wno-maybe-uninitialized
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
|
||||
CPPFLAGS+= -I${OPENSOLARIS_SYS_DISTDIR}/uts/intel
|
||||
CPPFLAGS+= -I${.CURDIR}/../../dev/dtrace/x86
|
||||
|
|
Loading…
Reference in New Issue