[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] mbsstr: fix warnings reported by gcc -Wcast-align on ARM
From: |
Jim Meyering |
Subject: |
Re: [PATCH] mbsstr: fix warnings reported by gcc -Wcast-align on ARM |
Date: |
Mon, 04 Oct 2010 21:19:52 +0200 |
Dmitry V. Levin wrote:
...
> The same method is already in use in grep nowadays, so the patch is
> straightforward:
>
> From a2b98bac33cb209a5b037351d68d981e9dc78dfc Mon Sep 17 00:00:00 2001
> From: Dmitry V. Levin <address@hidden>
> Date: Mon, 4 Oct 2010 18:49:14 +0000
> Subject: [PATCH] Compile gnulib without -Wcast-align that cause warnings on
> ARM
>
> * configure.ac (GNULIB_WARN_CFLAGS): Remove -Wcast-align.
> ---
> configure.ac | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 481ce86..3c28218 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -124,6 +124,7 @@ if test "$gl_gcc_warnings" = yes; then
> nw="$nw -Wunused-macros"
> #nw="$nw -Wmissing-prototypes"
> nw="$nw -Wold-style-definition"
> + nw="$nw -Wcast-align"
> gl_MANYWARN_COMPLEMENT([GNULIB_WARN_CFLAGS], [$WARN_CFLAGS], [$nw])
> AC_SUBST([GNULIB_WARN_CFLAGS])
Thanks for the patch.
I tweaked the summary and pushed it.
build: compile gnulib without -Wcast-align to avoid warnings on ARM