This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]