Commit 3a1de341 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Andrey Vagin

zdtm: Disable strict aliasing optimization

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: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 65ac9ccb
LIBDIR = ../../lib LIBDIR = ../../lib
LIB = $(LIBDIR)/libzdtmtst.a LIB = $(LIBDIR)/libzdtmtst.a
override CPPFLAGS += -I$(LIBDIR) override CPPFLAGS += -I$(LIBDIR)
CFLAGS = -g -O2 -Wall -Werror CFLAGS = -g -O2 -Wall -Werror -fno-strict-aliasing
TST_NOFILE = \ TST_NOFILE = \
pipe_loop00 \ pipe_loop00 \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment