Commit d1a36cc9 authored by vkonyashkin's avatar vkonyashkin Committed by Pavel Emelyanov

zdtm: It's need turn off FORTIFY_SOURCE instead of use -Wno-unused-result option

The -Wno-unused-result option looks to have been introduced in GCC 4.5.0.
So it's need turn off FORTIFY_SOURCE (compiler warn about unused results
in fortification mode) instead of use -Wno-unused-result to avoid error
in versions prior to 4.5.0.
Signed-off-by: 's avatarVictor Konyashkin  <vkonyashkin@parallels.com>
Acked-by: 's avatarAndrey Wagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 47d200c6
CFLAGS = -g -O2 -Wall -Werror -Wno-unused-result CFLAGS = -g -O2 -Wall -Werror -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
LIB = libzdtmtst.a LIB = libzdtmtst.a
......
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 -Wno-unused-result CFLAGS = -g -O2 -Wall -Werror -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
TST_NOFILE = \ TST_NOFILE = \
busyloop00 \ busyloop00 \
......
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