From: Lucy Phipps <landfillbaby69@gmail.com>
To: Gnulib bugs <bug-gnulib@gnu.org>, Paul Eggert <eggert@cs.ucla.edu>
Subject: [PATCH] declare free() in lib/free.c
Date: Wed, 8 Sep 2021 12:42:43 +0100 [thread overview]
Message-ID: <CAGOd_F8_6dPLfW8gmQup1XnhKJSyBrdWAsvSjooO3cm6MjcOOg@mail.gmail.com> (raw)
avoids an implicit declaration warning
---
lib/free.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/free.c b/lib/free.c
index 780f03dd1..804640c2e 100644
--- a/lib/free.c
+++ b/lib/free.c
@@ -27,9 +27,11 @@
# include <errno.h>
+# undef free
+void free (void *);
+
void
rpl_free (void *p)
-# undef free
{
# if defined __GNUC__ && !defined __clang__
/* An invalid GCC optimization
next reply other threads:[~2021-09-08 14:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-08 11:42 Lucy Phipps [this message]
2021-09-08 14:59 ` [PATCH] declare free() in lib/free.c Bruno Haible
2021-09-10 10:23 ` Simon Josefsson via Gnulib discussion list
2021-09-10 11:17 ` Lucy Phipps
2021-09-10 11:24 ` Lucy Phipps
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=CAGOd_F8_6dPLfW8gmQup1XnhKJSyBrdWAsvSjooO3cm6MjcOOg@mail.gmail.com \
--to=landfillbaby69@gmail.com \
--cc=bug-gnulib@gnu.org \
--cc=eggert@cs.ucla.edu \
/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).