mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 05:06:31 +00:00
Compilation: Disabled -Wextra on RHEL5 since it triggers too many uninteresting warnings on that platform.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2615 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -22,10 +22,12 @@
|
||||
|
||||
cc-option = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
|
||||
> /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)
|
||||
enable-Wextra = $(shell uname_r="$$(uname -r)"; if [ "$${uname_r%.el5}" = "$${uname_r}" ]; then echo "$(1)"; fi)
|
||||
|
||||
EXTRA_CFLAGS += -I$(src)/../include -I$(SCST_INC_DIR)
|
||||
EXTRA_CFLAGS += -Wextra $(call cc-option,-Wno-old-style-declaration) \
|
||||
-Wno-unused-parameter -Wno-missing-field-initializers
|
||||
EXTRA_CFLAGS += $(call enable-Wextra,-Wextra \
|
||||
$(call cc-option,-Wno-old-style-declaration) \
|
||||
-Wno-unused-parameter -Wno-missing-field-initializers)
|
||||
|
||||
EXTRA_CFLAGS += -DCONFIG_SCST_EXTRACHECKS
|
||||
#EXTRA_CFLAGS += -DCONFIG_SCST_TRACING
|
||||
|
||||
+4
-2
@@ -118,8 +118,10 @@ INSTALL_DIR := $(DESTDIR)/lib/modules/$(KVER)/extra
|
||||
endif
|
||||
INSTALL_DIR_H := $(DESTDIR)/usr/local/include/scst
|
||||
|
||||
EXTRA_CFLAGS += -I$(SCST_INC_DIR) -Wextra -Wno-unused-parameter \
|
||||
-Wno-missing-field-initializers
|
||||
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)
|
||||
|
||||
#EXTRA_CFLAGS += -DCONFIG_SCST_STRICT_SERIALIZING
|
||||
|
||||
|
||||
@@ -69,8 +69,10 @@ else
|
||||
INSTALL_DIR := /lib/modules/$(KVER)/extra
|
||||
endif
|
||||
|
||||
EXTRA_CFLAGS += -I$(SUBDIRS) -I$(SCST_INC_DIR) -Wextra -Wno-unused-parameter \
|
||||
-Wno-missing-field-initializers
|
||||
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)
|
||||
|
||||
EXTRA_CFLAGS += -DCONFIG_SCST_EXTRACHECKS
|
||||
|
||||
|
||||
+4
-1
@@ -8,8 +8,11 @@ SCST_INC_DIR := $(SUBDIRS)/../scst/include/
|
||||
SCST_DIR := $(shell pwd)/../scst/src
|
||||
KMOD := $(shell pwd)/kernel
|
||||
|
||||
enable-Wextra = $(shell uname_r="$$(uname -r)"; if [ "$${uname_r%.el5}" = "$${uname_r}" ]; then echo "$(1)"; fi)
|
||||
|
||||
EXTRA_CFLAGS += -I$(SCST_INC_DIR) -I$(SCST_DIR)
|
||||
EXTRA_CFLAGS += -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
|
||||
EXTRA_CFLAGS += $(call enable-Wextra,-Wextra -Wno-unused-parameter\
|
||||
-Wno-missing-field-initializers)
|
||||
|
||||
#EXTRA_CFLAGS += -DCONFIG_SCST_LOCAL_FORCE_DIRECT_PROCESSING
|
||||
|
||||
|
||||
Reference in New Issue
Block a user