* [PATCH] * lib/xmalloc.c (nonnull): Pacify gcc -Wsuggest-attribute=pure (GCC 10.3).
@ 2021-06-12 0:38 Paul Eggert
0 siblings, 0 replies; only message in thread
From: Paul Eggert @ 2021-06-12 0:38 UTC (permalink / raw)
To: bug-gnulib; +Cc: Paul Eggert
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-12 0:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-12 0:38 [PATCH] * lib/xmalloc.c (nonnull): Pacify gcc -Wsuggest-attribute=pure (GCC 10.3) Paul Eggert
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).