This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] lib/color: Fix compilation with uClibc
- From: Mark Wielaard <mark at klomp dot org>
- To: Rosen Penev <rosenp at gmail dot com>, elfutils-devel at sourceware dot org
- Date: Sun, 05 May 2019 16:56:54 +0200
- Subject: Re: [PATCH] lib/color: Fix compilation with uClibc
- References: <20190503175955.4148-1-rosenp@gmail.com>
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