* [PATCH] lib/color: Fix compilation with uClibc
@ 2019-05-03 18:00 Rosen Penev
2019-05-05 14:56 ` Mark Wielaard
0 siblings, 1 reply; 2+ messages in thread
From: Rosen Penev @ 2019-05-03 18:00 UTC (permalink / raw)
To: elfutils-devel
elfutils passed -Werror and this call errors on uClibc with a mismatching
pointer type. Cast to char * to fix.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
lib/color.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/color.c b/lib/color.c
index 9ffbf55f..20b9698a 100644
--- a/lib/color.c
+++ b/lib/color.c
@@ -132,7 +132,7 @@ valid arguments are:\n\
- 'auto', 'tty', 'if-tty'\n"),
program_invocation_short_name, arg);
argp_help (&color_argp, stderr, ARGP_HELP_SEE,
- program_invocation_short_name);
+ (char *) program_invocation_short_name);
exit (EXIT_FAILURE);
}
}
--
2.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] lib/color: Fix compilation with uClibc
2019-05-03 18:00 [PATCH] lib/color: Fix compilation with uClibc Rosen Penev
@ 2019-05-05 14:56 ` Mark Wielaard
0 siblings, 0 replies; 2+ messages in thread
From: Mark Wielaard @ 2019-05-05 14:56 UTC (permalink / raw)
To: Rosen Penev, elfutils-devel
On Fri, 2019-05-03 at 10:59 -0700, Rosen Penev wrote:
> elfutils passed -Werror and this call errors on uClibc with a
> mismatching pointer type. Cast to char * to fix.
Aha. I see uClibc defines program_invocation_short_name as a const
char*, while glibc defines it as a char *. And argp_help takes a char *
name as argument in both. Slightly odd, but sure, the cast to char *
should be harmless.
Added a ChangeLog entry and pushed to master.
Thanks,
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-05 14:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-03 18:00 [PATCH] lib/color: Fix compilation with uClibc Rosen Penev
2019-05-05 14:56 ` Mark Wielaard
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).