]> git.ipfire.org Git - thirdparty/valgrind.git/commit
configure should check for warning flags supported to disable them (#338205).
authorMark Wielaard <mark@klomp.org>
Wed, 20 Aug 2014 16:11:53 +0000 (16:11 +0000)
committerMark Wielaard <mark@klomp.org>
Wed, 20 Aug 2014 16:11:53 +0000 (16:11 +0000)
commitb4ebc0e1516d0e63241062473bdcc4a0558a1046
tree7a47529c61af98fb87e494dc9812b7ad3198eb2b
parentb60a3a394dbeb19289a1a203005840454253c6bf
configure should check for warning flags supported to disable them (#338205).

Configure would check whether gcc supported -Wno... flags. But gcc always
does. It is happy to just not warn about anything. So flip all configure
checks to test for the warning and only when gcc accepts the warning flag
use -Wno-...

Introduces two helper functions to make it easier to add new flag checks.
AC_GCC_WARNING_COND and AC_GCC_WARNING_SUBST_NO.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14319
NEWS
configure.ac