mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-01 06:45:35 +00:00
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: Victor Konyashkin <vkonyashkin@parallels.com> Acked-by: Andrey Wagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
47d200c637
commit
d1a36cc98a
@@ -1,4 +1,4 @@
|
|||||||
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
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
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 \
|
||||||
|
Reference in New Issue
Block a user