]> Savannah Git Hosting - gnulib.git/commitdiff
c-stack: pacify GCC 9.3.1 when using libsigsegv
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 5 Oct 2020 01:12:50 +0000 (18:12 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 5 Oct 2020 01:13:05 +0000 (18:13 -0700)
* lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.

ChangeLog
lib/c-stack.c

index 83b92302d90e2a2ea0abb3a31552b616636720b9..e0c821f7d8e63f5be07f66ba1af2ae398f314965 100644 (file)
--- 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.
index 187bcafff178a1e7f1d244c8b7e88441124cb8b6..3aea16acd7e94d1976e27bf32418abeff1c4416b 100644 (file)
@@ -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;