* relocatable-prog: Fix compiler warning
@ 2023-02-04 1:52 Bruno Haible
0 siblings, 0 replies; only message in thread
From: Bruno Haible @ 2023-02-04 1:52 UTC (permalink / raw)
To: bug-gnulib
This should fix a wrong use of 'const'. I saw a warning while building Reuben's
libpaper with --enable-relocatable.
2023-02-03 Bruno Haible <bruno@clisp.org>
relocatable-prog: Fix compiler warning.
* lib/progreloc.c (full_read): Use a non-const pointer.
diff --git a/lib/progreloc.c b/lib/progreloc.c
index 8534fb08da..30b1f759b6 100644
--- a/lib/progreloc.c
+++ b/lib/progreloc.c
@@ -133,7 +133,7 @@ static size_t
full_read (int fd, void *buf, size_t count)
{
size_t total = 0;
- const char *ptr = (const char *) buf;
+ char *ptr = (char *) buf;
while (count > 0)
{
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-04 1:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-04 1:52 relocatable-prog: Fix compiler warning Bruno Haible
Code repositories for project(s) associated with this public inbox
https://public-inbox.org/mirrors/gnulib.git/
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).