bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: bug-gnulib@gnu.org
Cc: Paul Eggert <eggert@cs.ucla.edu>
Subject: [PATCH] * lib/xmalloc.c (nonnull): Pacify gcc -Wsuggest-attribute=pure (GCC 10.3).
Date: Fri, 11 Jun 2021 17:38:51 -0700	[thread overview]
Message-ID: <20210612003851.1588450-1-eggert@cs.ucla.edu> (raw)

---
 lib/xmalloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/xmalloc.c b/lib/xmalloc.c
index 413ee1b3c..81bb427d3 100644
--- a/lib/xmalloc.c
+++ b/lib/xmalloc.c
@@ -28,7 +28,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-static void *
+static void * _GL_ATTRIBUTE_PURE
 nonnull (void *p)
 {
   if (!p)
-- 
2.30.2



                 reply	other threads:[~2021-06-12  0:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210612003851.1588450-1-eggert@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=bug-gnulib@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).