]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - Makefile
disable new gcc-7.1.1 warnings for now
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Jul 2017 02:25:47 +0000 (19:25 -0700)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Fri, 11 Aug 2017 10:37:22 +0000 (12:37 +0200)
commitc76d04d6715a708e40e90ff781fab8c6c9419b06
tree41474864fa64ef79d4363ababa39f19379f8fba4
parent5e38111660fd9b5485d133bb8ef8d9c266fc42ba
disable new gcc-7.1.1 warnings for now

BugLink: http://bugs.launchpad.net/bugs/1707233
commit bd664f6b3e376a8ef4990f87d08271cc2d01ba9a upstream.

I made the mistake of upgrading my desktop to the new Fedora 26 that
comes with gcc-7.1.1.

There's nothing wrong per se that I've noticed, but I now have 1500
lines of warnings, mostly from the new format-truncation warning
triggering all over the tree.

We use 'snprintf()' and friends in a lot of places, and often know that
the numbers are fairly small (ie a controller index or similar), but gcc
doesn't know that, and sees an 'int', and thinks that it could be some
huge number.  And then complains when our buffers are not able to fit
the name for the ten millionth controller.

These warnings aren't necessarily bad per se, and we probably want to
look through them subsystem by subsystem, but at least during the merge
window they just mean that I can't even see if somebody is introducing
any *real* problems when I pull.

So warnings disabled for now.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Makefile