]> git.ipfire.org Git - thirdparty/coreutils.git/commit
build: update GCC warnings
authorPádraig Brady <P@draigBrady.com>
Tue, 10 Jun 2014 23:39:45 +0000 (00:39 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 10 Jun 2014 23:49:38 +0000 (00:49 +0100)
commit0216f8397f10e3f95915325e2fda70b99651ad0c
tree66e86a4412c4b20e5755dd1414bd10a19d6e71f4
parent9a6a486e6503520fd2581f2d3356b7149f1b225d
build: update GCC warnings

* configure.ac: Remove the -Wsuggest-attribute=pure
enablement on GCC >= 4.7, as that was moot since
gnulib was already enabling that warning in its default set.
The false positive was seen with 4.6.2, but confirmed
not present in 4.6.3, so that's sufficiently old to
just leave this enabled unconditionally.

Remove the -Wsuggest-attribute={const,noreturn}
enablement, as gnulib already has those in the default set.

Enable the -Wlogical-op warning for GCC >= 4.8.0
as that is confirmed OK with coreutils at least, due to
fixing: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43772

Remove the -Wno-logical-op override since the main
-Wlogical-op flag is now sufficient to control this warning
as of GCC 4.6.3 at least.
configure.ac