diff --git a/external/cddl/osnet/lib/libdtrace/Makefile b/external/cddl/osnet/lib/libdtrace/Makefile index 1b5624ad1763..04a4d3046431 100644 --- a/external/cddl/osnet/lib/libdtrace/Makefile +++ b/external/cddl/osnet/lib/libdtrace/Makefile @@ -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