[stgt] [PATCH] usr/Makefile: Turn off build warning in new gcc

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Tue Mar 16 00:06:34 CET 2010


On Mon, 15 Mar 2010 16:27:02 +0200
Boaz Harrosh <bharrosh at panasas.com> wrote:

> diff --git a/usr/Makefile b/usr/Makefile
> index 2dcae2a..262300d 100644
> --- a/usr/Makefile
> +++ b/usr/Makefile
> @@ -53,7 +53,7 @@ INCLUDES += -I.
>  
>  CFLAGS += -D_GNU_SOURCE
>  CFLAGS += $(INCLUDES)
> -CFLAGS += -g -O2 -Wall -Wstrict-prototypes -fPIC
> +CFLAGS += -g -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -fPIC
>  CFLAGS += -DTGT_VERSION=\"$(VERSION)$(EXTRAVERSION)\"

Applied, thanks.

We could "fix" the code but I guess that linux kernel also has this
option. Silencing the warnings is acceptable in this way, I guess.
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list