svn commit: r278679 - stable/10/sys/conf
Ian Lepore
ian at FreeBSD.org
Fri Feb 13 16:08:47 UTC 2015
Author: ian
Date: Fri Feb 13 16:08:45 2015
New Revision: 278679
URL: https://svnweb.freebsd.org/changeset/base/278679
Log:
MFC r276666:
Eliminate uninitialized variable warnings in kernel and module builds when
building with gcc 4.2
Modified:
stable/10/sys/conf/kern.mk
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/conf/kern.mk
==============================================================================
--- stable/10/sys/conf/kern.mk Fri Feb 13 15:41:28 2015 (r278678)
+++ stable/10/sys/conf/kern.mk Fri Feb 13 16:08:45 2015 (r278679)
@@ -33,6 +33,11 @@ CWARNEXTRA?= -Wno-error-tautological-com
${NO_WFORMAT}
.endif
+.if ${COMPILER_TYPE} == "gcc"
+# For gcc 4.2, eliminate the too-often-wrong warnings about uninitialized vars.
+CWARNEXTRA?= -Wno-uninitialized
+.endif
+
# External compilers may not support our format extensions. Allow them
# to be disabled. WARNING: format checking is disabled in this case.
.if ${MK_FORMAT_EXTENSIONS} == "no"
More information about the svn-src-stable-10
mailing list