Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Nov 2014 14:54:32 -0700
From:      Ian Lepore <ian@FreeBSD.org>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r274926 - head/sys/dev/mpt
Message-ID:  <1416779672.1147.349.camel@revolution.hippie.lan>
In-Reply-To: <33FD799A-274A-4797-8A0F-365B37868997@FreeBSD.org>
References:  <201411232137.sANLbY0F097559@svn.freebsd.org> <33FD799A-274A-4797-8A0F-365B37868997@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 2014-11-23 at 22:47 +0100, Dimitry Andric wrote:
> On 23 Nov 2014, at 22:37, Ian Lepore <ian@FreeBSD.org> wrote:
> > 
> > Author: ian
> > Date: Sun Nov 23 21:37:33 2014
> > New Revision: 274926
> > URL: https://svnweb.freebsd.org/changeset/base/274926
> > 
> > Log:
> >  Squelch a (bogus) used before init warning when building with gcc.
> 
> There have been quite a number of commits now for silencing gcc's mostly
> incorrect used-before-init warnings.  Of course, this is due to base gcc
> being very old.  So maybe it's time to start using -Wno-uninitialized
> for gcc 4.2 and earlier?
> 
> -Dimitry
> 

It does seem like just sprinking trash over the source code.

Does clang warn properly (or at least better than gcc does), or if we
squelch this will we have no warnings at all?  Hmmm, coverity should
tell us if we introduce new use-before-inits, right?

-- Ian





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