Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 2018 04:30:57 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329354 - head/usr.sbin/trpt
Message-ID:  <201802160430.w1G4UvCr022333@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Fri Feb 16 04:30:57 2018
New Revision: 329354
URL: https://svnweb.freebsd.org/changeset/base/329354

Log:
  trpt(8): Work around GCC4 shenanigans
  
  Reduce warns to known good value and do not add -Wno- flag the ancient GCC4
  does not understand.
  
  Reported by:	jhibbits
  Sponsored by:	Dell EMC Isilon

Modified:
  head/usr.sbin/trpt/Makefile

Modified: head/usr.sbin/trpt/Makefile
==============================================================================
--- head/usr.sbin/trpt/Makefile	Fri Feb 16 04:22:29 2018	(r329353)
+++ head/usr.sbin/trpt/Makefile	Fri Feb 16 04:30:57 2018	(r329354)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802160430.w1G4UvCr022333>