Le 7 déc. 2012 à 01:18, Jim Meyering <j...@meyering.net> a écrit :
> Hi Akim, > > I've turned off -Wcast-qual warning for coreutils, grep, diffutils, etc. > For us, that seems to be the best route, since we try hard not to > add new casts (so there's little risk of introducing new violations), > and since the few code sites that provoke warnings have already been > carefully examined. Hi Jim! OK, thanks. Let it be for Bison (maint) too: commit 28d16d1f7cd7ae201d368210ba87f3ef5c0abd51 Author: Akim Demaille <a...@lrde.epita.fr> Date: Fri Dec 7 09:48:41 2012 +0100 build: drop -Wcast-qual Suggested by Jim Meyering. http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00017.html * configure.ac (warn_common): Remove -Wcast-qual. diff --git a/configure.ac b/configure.ac index 83e20ac..4004f55 100644 --- a/configure.ac +++ b/configure.ac @@ -67,7 +67,7 @@ AC_ARG_ENABLE([gcc-warnings], [enable_gcc_warnings=no]) if test "$enable_gcc_warnings" = yes; then warn_common='-Wall -Wextra -Wno-sign-compare -Wcast-align - -Wcast-qual -Wformat -Wpointer-arith -Wwrite-strings' + -Wformat -Wpointer-arith -Wwrite-strings' warn_c='-Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wshadow -Wstrict-prototypes' warn_cxx='-Wnoexcept'