Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jul 2014 14:10:46 +0100
From:      David Chisnall <theraven@FreeBSD.org>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        Hans Petter Selasky <hps@selasky.org>, stable@freebsd.org, "current@freebsd.org" <current@freebsd.org>
Subject:   Re: [HEADS-UP] Problem with clang in 9-stable [was: r268244 (stable/9) seems to break "sysctl hw.ncpu"]
Message-ID:  <771D269B-AC6D-4686-ABB0-04F7DCD3A8D9@FreeBSD.org>
In-Reply-To: <F7112AF8-82DD-410D-97A1-C01FFB49B3B4@FreeBSD.org>
References:  <20140704123901.GR6056@albert.catwhisker.org> <53B6E218.5070009@selasky.org> <20140704174705.GS6056@albert.catwhisker.org> <53B6EDD1.8030506@selasky.org> <20140704181831.GV6056@albert.catwhisker.org> <909248A4-1B7C-4836-ADAA-F81A70A8AC3C@theravensnest.org> <F7112AF8-82DD-410D-97A1-C01FFB49B3B4@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 5 Jul 2014, at 14:07, Dimitry Andric <dim@FreeBSD.org> wrote:

> Interestingly, -Wno-uninitialized has been in bsd.sys.mk since r76861,
> and the accompanying comment ("XXX Delete -Wuninitialized by default for
> now -- the compiler doesn't always get it right") has never been
> changed. :-)
> 
> It is probably time to re-enable that warning after 13 years, at least.

It probably only wants enabling for clang.  GCC (at least, GCC 4.2.1) performs this analysis based on analyses run by the optimisers and so the warnings are dependent on optimisation level.

David




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?771D269B-AC6D-4686-ABB0-04F7DCD3A8D9>