diff options
author | Jim Meyering <meyering@fb.com> | 2017-12-17 07:58:43 -0800 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2017-12-17 07:58:43 -0800 |
commit | e6c447d02a406209c56d5ca92ce7660a31b2c114 (patch) | |
tree | e7913af11d4efa568215bc94f9cce1f68dc4efef /configure.ac | |
parent | 51ef8adb2f7eeb073ba98be4f6baf56817e4d358 (diff) | |
download | grep-e6c447d02a406209c56d5ca92ce7660a31b2c114.tar.gz |
build: suppress sig-handler.h's -Wcast-function-type warning
* configure.ac (WERROR_CFLAGS): Add -Wno-cast-function-type
to suppress warning about sig-handler.h's sa_handler_t cast:
sig-handler.h: In function 'get_handler':
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;
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 032c91b6..59153dc1 100644 --- a/configure.ac +++ b/configure.ac @@ -149,6 +149,7 @@ if test "$gl_gcc_warnings" = yes; then gl_WARN_ADD([-Wno-missing-field-initializers]) # We need this one gl_WARN_ADD([-Wno-sign-compare]) # Too many warnings for now gl_WARN_ADD([-Wno-unused-parameter]) # Too many warnings for now + gl_WARN_ADD([-Wno-cast-function-type]) # sig-handler.h's sa_handler_t cast # 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 |