This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
[PATCH] lib/color: Fix compilation with uClibc
- From: Rosen Penev <rosenp at gmail dot com>
- To: elfutils-devel at sourceware dot org
- Date: Fri, 3 May 2019 10:59:55 -0700
- Subject: [PATCH] lib/color: Fix compilation with uClibc
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