]> git.baikalelectronics.ru Git - 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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 27 Jul 2016 20:17:41 +0000 (13:17 -0700)
commit3179b1a24390137c33f33db66e3d73584d019563
tree68776cc543e97cda5bd003237fd2aa4cad585602
parentbab34dc5f49c4220adf3e9cfaa5a4aaf8fc0a547
Disable "maybe-uninitialized" warning globally

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>
Makefile
arch/arc/Makefile
scripts/Makefile.ubsan