[CRIU] [PATCH] zdtm: Disable strict aliasing optimization

Kinsbursky Stanislav skinsbursky at openvz.org
Tue Feb 7 05:51:08 EST 2012


Why not to fix the test?

28.01.2012 11:44, Cyrill Gorcunov пишет:
> Just disable it for a while, otherwise we get
> in test/zdtm/live/streaming/netlink00.c
>
> cc1: warnings being treated as errors
> netlink00.c: In function ‘form_request_del’:
> netlink00.c:311: error: dereferencing pointer ‘rtap’ does break strict-aliasing rules
> netlink00.c:312: error: dereferencing pointer ‘rtap’ does break strict-aliasing rules
> netlink00.c:310: note: initialized from here
> netlink00.c: In function ‘form_request_add’:
> netlink00.c:271: error: dereferencing pointer ‘rtap’ does break strict-aliasing rules
> netlink00.c:272: error: dereferencing pointer ‘rtap’ does break strict-aliasing rules
> netlink00.c:270: note: initialized from here
>
> Signed-off-by: Cyrill Gorcunov<gorcunov at openvz.org>
> ---
>   test/zdtm/live/streaming/Makefile |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/test/zdtm/live/streaming/Makefile b/test/zdtm/live/streaming/Makefile
> index 0bda326..7aeced5 100644
> --- a/test/zdtm/live/streaming/Makefile
> +++ b/test/zdtm/live/streaming/Makefile
> @@ -1,7 +1,7 @@
>   LIBDIR	= ../../lib
>   LIB	= $(LIBDIR)/libzdtmtst.a
>   override CPPFLAGS += -I$(LIBDIR)
> -CFLAGS	= -g -O2 -Wall -Werror
> +CFLAGS	= -g -O2 -Wall -Werror -fno-strict-aliasing
>
>   TST_NOFILE	=	\
>   		pipe_loop00	\


-- 
Best regards,
Stanislav Kinsbursky




More information about the CRIU mailing list