mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 20:56:24 +00:00
iscsi-scst/usr/Makefile: Pass -Wno-format-truncation if supported
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7257 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -18,6 +18,9 @@ ifndef PREFIX
|
||||
PREFIX=/usr/local
|
||||
endif
|
||||
|
||||
cc-option = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \
|
||||
> /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)
|
||||
|
||||
SRCS_D = iscsid.c iscsi_scstd.c conn.c session.c target.c message.c ctldev.c \
|
||||
log.c chap.c event.c param.c config.c isns.c md5.c sha1.c \
|
||||
misc.c
|
||||
@@ -28,7 +31,9 @@ OBJS_ADM = $(SRCS_ADM:.c=.o)
|
||||
|
||||
CFLAGS += -O2 -Wall -Wextra -Wstrict-prototypes -Wno-sign-compare \
|
||||
-Wimplicit-function-declaration -Wno-unused-parameter \
|
||||
-Wno-missing-field-initializers -g -I../include -I$(SCST_INC_DIR)
|
||||
-Wno-missing-field-initializers \
|
||||
$(call cc-option,-Wno-format-truncation) \
|
||||
-g -I../include -I$(SCST_INC_DIR)
|
||||
CFLAGS += -D_GNU_SOURCE # required for glibc >= 2.8
|
||||
CFLAGS += $(LOCAL_CFLAGS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user