[Bug c++/78964] gcc fails to detect pointless increment

trippels at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 2 07:41:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78964

--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
And the Linux kernel would not see these warnings anyway:

Makefile:
 707 # These warnings generated too much noise in a regular build.
 708 # Use make W=1 to enable them (see scripts/Makefile.build)
 709 KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable)
 710 KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable)


More information about the Gcc-bugs mailing list