Commit fc8c66c6 authored by Victor Konyashkin's avatar Victor Konyashkin Committed by Pavel Emelyanov

zdtm: Need add -Wno-unused-result option lib and static Makefile

It's need to add -Wno-unused-result option to lib and
static Makefile to avoid errors like:
msg.c:58:8: error: ignoring return value of 'write', declared with
attribute warn_unused_result [-Werror=unused-result]
Signed-off-by: 's avatarVictor Konyashkin <vkonyashkin@parallels.com>
Acked-by: 's avatarAndrey Vagin <avagin@parallels.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 66a7f1a3
CFLAGS = -g -O2 -Wall -Werror
CFLAGS = -g -O2 -Wall -Werror -Wno-unused-result
LIB = libzdtmtst.a
......
LIBDIR = ../../lib
LIB = $(LIBDIR)/libzdtmtst.a
override CPPFLAGS += -I$(LIBDIR)
CFLAGS = -g -O2 -Wall -Werror
CFLAGS = -g -O2 -Wall -Werror -Wno-unused-result
TST_NOFILE = \
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