mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-24 02:35:41 +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:
parent
47d200c637
commit
d1a36cc98a
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
LIBDIR = ../../lib
|
||||
LIB = $(LIBDIR)/libzdtmtst.a
|
||||
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 = \
|
||||
busyloop00 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue