This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] libdwfl: Fix wrong type to make gcc -fsanitize=undefined happy.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Wed, 06 May 2015 12:00:55 +0200
- Subject: Re: [PATCH] libdwfl: Fix wrong type to make gcc -fsanitize=undefined happy.
On Tue, 2015-04-21 at 13:26 -0700, Roland McGrath wrote:
> [PATCH] libdwfl: Make dwfl_error.c C99-kosher.
>
> Signed-off-by: Roland McGrath <roland@hack.frob.com>
> ---
> libdwfl/ChangeLog | 7 +++++++
> libdwfl/dwfl_error.c | 21 +++++++++++++++++----
> 2 files changed, 24 insertions(+), 4 deletions(-)
>
> +2015-04-21 Roland McGrath <roland@hack.frob.com>
> +
> + * dwfl_error.c (struct msgtable): Break type definition out of
> + the 'msgtable' initializer.
> + (msgtable): Make it a union of struct msgtable and a char array.
> + (msgstr): Use the full-table char array rather than the msg_0 entry.
This is the last patch needed to get make check happy when using
gcc -fsanitize=undefined. Please do push it (or one of the variants
discussed in the thread).
Thanks,
Mark