svn commit: r334554 - head/usr.bin/top

Eitan Adler eadler at FreeBSD.org
Sun Jun 3 06:02:32 UTC 2018


Author: eadler
Date: Sun Jun  3 06:02:31 2018
New Revision: 334554
URL: https://svnweb.freebsd.org/changeset/base/334554

Log:
  top(1): Only use NO_WERROR for base gcc
  
  This is what was intended. If statements are hard.

Modified:
  head/usr.bin/top/Makefile

Modified: head/usr.bin/top/Makefile
==============================================================================
--- head/usr.bin/top/Makefile	Sun Jun  3 05:20:11 2018	(r334553)
+++ head/usr.bin/top/Makefile	Sun Jun  3 06:02:31 2018	(r334554)
@@ -10,11 +10,13 @@ MAN=	top.1
 
 WARNS?=	6
 
-.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 50000
+.if ${COMPILER_TYPE} == "gcc"
+.if ${COMPILER_VERSION} >= 50000
 CFLAGS.gcc=-Wno-error=cast-align -Wno-error=cast-qual -Wno-error=discarded-qualifiers -Wno-error=incompatible-pointer-types \
 	-Wno-error=maybe-uninitialized
 .else #base gcc
 NO_WERROR=
+.endif
 .endif
 CFLAGS.clang=-Wno-error=incompatible-pointer-types-discards-qualifiers -Wno-error=cast-qual -Wno-error=cast-align
 


More information about the svn-src-head mailing list