aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/trpt/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.sbin/trpt/Makefile b/usr.sbin/trpt/Makefile
index 33a3d1f81a7f..53c1660f2b25 100644
--- a/usr.sbin/trpt/Makefile
+++ b/usr.sbin/trpt/Makefile
@@ -8,12 +8,20 @@ MAN= trpt.8
BINGRP= kmem
BINMODE= 2555
+.if ${MACHINE_CPUARCH} != "aarch64" && ${MACHINE_CPUARCH} != "amd64" && \
+ ${MACHINE_CPUARCH} != "i386" && ${MACHINE_CPUARCH} != "riscv"
+WARNS?= 4
+.endif
+
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+= -DINET6
.endif
.include <bsd.prog.mk>
+.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
+ ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "riscv"
# Several included system headers tickle this warning in ways that are
# difficult to work around in this program.
CFLAGS+= -Wno-missing-variable-declarations
+.endif