diff options
author | Jim Meyering <meyering@fb.com> | 2018-01-06 16:44:03 -0800 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2018-01-06 16:45:38 -0800 |
commit | 81eea1db38a934e38b9307059a57c1c76fbf6163 (patch) | |
tree | 3b966290c22de3299cba306aa58cae3558bfb9e8 | |
parent | b50ab11f235eb214d8cce710bda068365accb6e9 (diff) | |
download | diffutils-81eea1db38a934e38b9307059a57c1c76fbf6163.tar.gz |
maint: suppress gcc's new -Wcast-function-type in gnulib
* configure.ac (WERROR_CFLAGS): Suppress gcc's new -Wcast-function-type
warning in gnulib, because it would trigger on this:
sig-handler.h:47:12: error: cast between incompatible function types\
from 'void (* const)(int, siginfo_t *, void *)' \
{aka 'void (* const)(int, struct <anonymous> *, void *)'} \
to 'void (*)(int)' [-Werror=cast-function-type]
return (sa_handler_t) a->sa_sigaction;
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 28e0107..6e130f4 100644 --- a/configure.ac +++ b/configure.ac @@ -102,6 +102,7 @@ if test "$gl_gcc_warnings" = yes; then gl_WARN_ADD([-Wno-pointer-sign]) # Too many warnings for now gl_WARN_ADD([-Wno-unused-parameter]) # Too many warnings for now gl_WARN_ADD([-Wno-format-nonliteral]) + gl_WARN_ADD([-Wno-cast-function-type]) # For sig-handler.h:47 # In spite of excluding -Wlogical-op above, it is enabled, as of # gcc 4.5.0 20090517, and it provokes warnings in cat.c, dd.c, truncate.c |