Date: Fri, 13 Feb 2015 16:08:46 +0000 (UTC) From: Ian Lepore <ian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r278679 - stable/10/sys/conf Message-ID: <201502131608.t1DG8kDU049210@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502131608.t1DG8kDU049210>