]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
Disable "maybe-uninitialized" warning globally
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 27 Jul 2016 20:17:41 +0000 (13:17 -0700)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 20 Oct 2016 13:06:01 +0000 (08:06 -0500)
commit24fc927cb11140f819f8503cdf5d120a58b6a00d
treea8b75fe44a838e0153456875261b8038e97bebd7
parente0f0f128d59c92cf161296d96d065ba03415d850
Disable "maybe-uninitialized" warning globally

BugLink: http://bugs.launchpad.net/bugs/1629386
commit 6e8d666e925333c55378e8d5540a8a9ee0eea9c5 upstream.

Several build configurations had already disabled this warning because
it generates a lot of false positives.  But some had not, and it was
still enabled for "allmodconfig" builds, for example.

Looking at the warnings produced, every single one I looked at was a
false positive, and the warnings are frequent enough (and big enough)
that they can easily hide real problems that you don't notice in the
noise generated by -Wmaybe-uninitialized.

The warning is good in theory, but this is a classic case of a warning
that causes more problems than the warning can solve.

If gcc gets better at avoiding false positives, we may be able to
re-enable this warning.  But as is, we're better off without it, and I
want to be able to see the *real* warnings.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Makefile