From: Paul Eggert <eggert@cs.ucla.edu> Date: Mon, 5 Oct 2020 01:12:50 +0000 (-0700) Subject: c-stack: pacify GCC 9.3.1 when using libsigsegv X-Git-Tag: v1.0~3583 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=05b2d40dd751dd182f58118f4d3273ad8136b4ee;p=gnulib.git c-stack: pacify GCC 9.3.1 when using libsigsegv * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure. --- diff --git a/ChangeLog b/ChangeLog index 83b92302d9..e0c821f7d8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-10-04 Paul Eggert <eggert@cs.ucla.edu> + + c-stack: pacify GCC 9.3.1 when using libsigsegv + * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure. + 2020-10-04 Bruno Haible <bruno@clisp.org> localename: Fix a couple of "unused parameter" warnings. 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;