Re: [HEADS-UP] Problem with clang in 9-stable [was: r268244 (stable/9) seems to break "sysctl hw.ncpu"]

From: David Chisnall <theraven_at_FreeBSD.org>
Date: Sat, 5 Jul 2014 14:10:46 +0100
On 5 Jul 2014, at 14:07, Dimitry Andric <dim_at_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
Received on Sat Jul 05 2014 - 11:10:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:50 UTC