Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Mar 2018 05:41:27 +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: r330791 - head/sys/conf
Message-ID:  <201803120541.w2C5fRs3050337@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Mon Mar 12 05:41:27 2018
New Revision: 330791
URL: https://svnweb.freebsd.org/changeset/base/330791

Log:
  Implement NO_WCAST_QUAL for gcc4.2 architectures

Modified:
  head/sys/conf/kern.mk

Modified: head/sys/conf/kern.mk
==============================================================================
--- head/sys/conf/kern.mk	Mon Mar 12 05:03:32 2018	(r330790)
+++ head/sys/conf/kern.mk	Mon Mar 12 05:41:27 2018	(r330791)
@@ -68,6 +68,9 @@ CWARNEXTRA+=	-Wno-error=misleading-indentation		\
 .else
 # For gcc 4.2, eliminate the too-often-wrong warnings about uninitialized vars.
 CWARNEXTRA?=	-Wno-uninitialized
+# GCC 4.2 doesn't have -Wno-error=cast-qual, so just disable the warning for
+# the few files that are already known to generate cast-qual warnings.
+NO_WCAST_QUAL= -Wno-cast-qual
 .endif
 .endif
 



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