diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-10-04 18:12:50 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-10-04 18:13:05 -0700 |
commit | 05b2d40dd751dd182f58118f4d3273ad8136b4ee (patch) | |
tree | 27d9bb194e93d04cddeb34490b03fd988f5a09f3 /lib/c-stack.c | |
parent | 0e23e6d308c0fa432b66ce1fdd6dfa94cd4a19b4 (diff) | |
download | gnulib-05b2d40dd751dd182f58118f4d3273ad8136b4ee.tar.gz |
c-stack: pacify GCC 9.3.1 when using libsigsegv
* lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
Diffstat (limited to 'lib/c-stack.c')
-rw-r--r-- | lib/c-stack.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/c-stack.c b/lib/c-stack.c index 187bcafff1..3aea16acd7 100644 --- a/lib/c-stack.c +++ b/lib/c-stack.c @@ -168,6 +168,11 @@ null_action (int signo _GL_UNUSED) #if USE_LIBSIGSEGV +/* Pacify GCC 9.3.1, which otherwise would complain about segv_handler. */ +# if __GNUC_PREREQ (4, 6) +# pragma GCC diagnostic ignored "-Wsuggest-attribute=pure" +# endif + /* Nonzero if general segv handler could not be installed. */ static volatile int segv_handler_missing; |