Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Aug 2019 16:42:39 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r351430 - head/share/mk
Message-ID:  <201908231642.x7NGgd2j016098@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Fri Aug 23 16:42:39 2019
New Revision: 351430
URL: https://svnweb.freebsd.org/changeset/base/351430

Log:
  Turn off -Werror for gcc 4.2.1 for userland
  
  As discussed on arch@, gcc 4.2.1 is on its way out. Turn off Werror on gcc
  versions < 5.0 permantly. This will allow older platforms to continue to compile
  w/o new errors once we take them out of universe by default. This will also free
  developers from chasing down obsolete warnings that produce no beneficial
  changes to the source.
  
  Discussed on: arch@
  Reviewed by: jhb@, emaste@, pfg@
  Differential Revision: https://reviews.freebsd.org/D21378

Modified:
  head/share/mk/bsd.sys.mk

Modified: head/share/mk/bsd.sys.mk
==============================================================================
--- head/share/mk/bsd.sys.mk	Fri Aug 23 16:42:04 2019	(r351429)
+++ head/share/mk/bsd.sys.mk	Fri Aug 23 16:42:39 2019	(r351430)
@@ -29,6 +29,15 @@ CFLAGS+=	-std=${CSTD}
 CXXFLAGS+=	-std=${CXXSTD}
 .endif
 
+#
+# Turn off -Werror for gcc 4.2.1. The compiler is on the glide path out of the
+# system, and any warnings specific to it are no longer relevant as there are
+# too many false positives.
+#
+.if ${COMPILER_VERSION} <  50000
+NO_WERROR.gcc=	yes
+.endif
+
 # -pedantic is problematic because it also imposes namespace restrictions
 #CFLAGS+=	-pedantic
 .if defined(WARNS)



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