From 11a975ffad9bddb9edcb2c23be4274cef86dfaeb Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 14 Oct 2018 04:01:50 +0000 Subject: [PATCH] scst: Add -Wno-sign-compare for clang This patch avoids that clang complains about mixed sign comparisons. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7507 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/Makefile | 2 +- scst/src/dev_handlers/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scst/src/Makefile b/scst/src/Makefile index 0a7b3f6c4..159aa769a 100644 --- a/scst/src/Makefile +++ b/scst/src/Makefile @@ -155,7 +155,7 @@ INSTALL_DIR_H := $(DESTDIR)$(PREFIX)/include/scst enable-Wextra = $(shell uname_r="$$(uname -r)"; if [ "$${uname_r%.el5}" = "$${uname_r}" ]; then echo "$(1)"; fi) EXTRA_CFLAGS += -I$(SCST_INC_DIR) $(call enable-Wextra,-Wextra \ - -Wno-unused-parameter -Wno-missing-field-initializers) \ + -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare) \ $(shell [ -n "${CONFIG_SCST_NO_DLM}" ] && echo -DCONFIG_SCST_NO_DLM) #EXTRA_CFLAGS += -DCONFIG_SCST_STRICT_SERIALIZING diff --git a/scst/src/dev_handlers/Makefile b/scst/src/dev_handlers/Makefile index be8ca4332..8d998197f 100644 --- a/scst/src/dev_handlers/Makefile +++ b/scst/src/dev_handlers/Makefile @@ -75,7 +75,7 @@ endif enable-Wextra = $(shell uname_r="$$(uname -r)"; if [ "$${uname_r%.el5}" = "$${uname_r}" ]; then echo "$(1)"; fi) EXTRA_CFLAGS += -I$(SUBDIRS) -I$(SCST_INC_DIR) $(call enable-Wextra,-Wextra \ - -Wno-unused-parameter -Wno-missing-field-initializers) + -Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare) EXTRA_CFLAGS += -DCONFIG_SCST_EXTRACHECKS