From owner-svn-src-stable@FreeBSD.ORG Fri Feb 13 16:08:47 2015 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 05414BD8; Fri, 13 Feb 2015 16:08:47 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E4BAB287; Fri, 13 Feb 2015 16:08:46 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t1DG8k0L049212; Fri, 13 Feb 2015 16:08:46 GMT (envelope-from ian@FreeBSD.org) Received: (from ian@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t1DG8kDU049210; Fri, 13 Feb 2015 16:08:46 GMT (envelope-from ian@FreeBSD.org) Message-Id: <201502131608.t1DG8kDU049210@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: ian set sender to ian@FreeBSD.org using -f From: Ian Lepore Date: Fri, 13 Feb 2015 16:08:46 +0000 (UTC) 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 X-SVN-Group: stable-10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2015 16:08:47 -0000 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"