svn commit: r330791 - head/sys/conf

Conrad Meyer cem at FreeBSD.org
Mon Mar 12 05:41:28 UTC 2018


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
 


More information about the svn-src-all mailing list