mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
Makefiles: Remove -Wextra
Since not all kernel header files are compatible with -Wextra, remove -Wextra. To enable -Wextra, build SCST with W=1. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9054 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -23,9 +23,6 @@
|
||||
KBUILD_EXTRA_SYMBOLS = $(src)/../../scst/src/Module.symvers
|
||||
|
||||
ccflags-y += -I$(src)/../include -I$(src)/../../scst/include
|
||||
ccflags-y += $(call cc-option,-Wextra) \
|
||||
$(call cc-option,-Wno-old-style-declaration) \
|
||||
-Wno-unused-parameter -Wno-missing-field-initializers
|
||||
ccflags-y += $(PRE_CFLAGS)
|
||||
#ccflags-y += -DCONFIG_SCST_ISCSI_DEBUG_DIGEST_FAILURES
|
||||
|
||||
|
||||
@@ -25,9 +25,6 @@ KBUILD_EXTRA_SYMBOLS=$(src)/../../kernel/Module.symvers \
|
||||
$(shell for d in /usr/src/ofa_kernel/default/Module.symvers; do\
|
||||
[ -e $$d ] || continue; echo $$d; break; done)
|
||||
ccflags-y += -I$(src)/../../include -I$(src)/../../../scst/include
|
||||
ccflags-y += $(call cc-option,-Wextra) \
|
||||
$(call cc-option,-Wno-old-style-declaration) \
|
||||
-Wno-unused-parameter -Wno-missing-field-initializers
|
||||
|
||||
obj-m += isert-scst.o
|
||||
isert-scst-objs := isert.o isert_login.o \
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
ccflags-y += $(call cc-option,-Wextra) -Wno-unused-parameter \
|
||||
-Wno-missing-field-initializers \
|
||||
-I$(src)/../scst/include -I$(src)/include \
|
||||
ccflags-y += -I$(src)/../scst/include -I$(src)/include \
|
||||
-DDEFAULT_SYMBOL_NAMESPACE=QLA32GB
|
||||
|
||||
ifneq ($(CONFIG_SCSI_QLA2XXX_TARGET),)
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
KBUILD_EXTRA_SYMBOLS = $(src)/../../scst/src/Module.symvers \
|
||||
$(src)/../Module.symvers
|
||||
ccflags-y += -I$(src)/../../scst/include -I$(src)/..
|
||||
ccflags-y += -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
|
||||
#ccflags-y += -DCONFIG_QLA_TGT_DEBUG_WORK_IN_THREAD
|
||||
#ccflags-y += -DCONFIG_QLA_TGT_DEBUG_SRR
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
ccflags-y += $(call cc-option,-Wextra) -Wno-unused-parameter \
|
||||
-Wno-missing-field-initializers -I$(src)/../scst/include\
|
||||
-DDEFAULT_SYMBOL_NAMESPACE=QLA16GB
|
||||
ccflags-y += -I$(src)/../scst/include -DDEFAULT_SYMBOL_NAMESPACE=QLA16GB
|
||||
|
||||
ifneq ($(CONFIG_SCSI_QLA2XXX_TARGET),)
|
||||
ccflags-y += -DCONFIG_SCSI_QLA2XXX_TARGET=$(CONFIG_SCSI_QLA2XXX_TARGET)
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
KBUILD_EXTRA_SYMBOLS = $(src)/../../scst/src/Module.symvers \
|
||||
$(src)/../Module.symvers
|
||||
ccflags-y += -I$(src)/../../scst/include -I$(src)/..
|
||||
ccflags-y += -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
|
||||
#ccflags-y += -DCONFIG_QLA_TGT_DEBUG_WORK_IN_THREAD
|
||||
#ccflags-y += -DCONFIG_QLA_TGT_DEBUG_SRR
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# See also Documentation/core-api/symbol-namespaces.rst for more information
|
||||
# about DEFAULT_SYMBOL_NAMESPACE.
|
||||
ccflags-y += -I$(src)/../include $(call cc-option,-Wextra) \
|
||||
-Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare\
|
||||
ccflags-y += -I$(src)/../include\
|
||||
-DDEFAULT_SYMBOL_NAMESPACE=SCST\
|
||||
$(shell [ -n "${CONFIG_SCST_NO_DLM}" ] && echo -DCONFIG_SCST_NO_DLM)
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
KBUILD_EXTRA_SYMBOLS=$(src)/../Module.symvers
|
||||
ccflags-y += -I$(src)/../../include \
|
||||
$(call cc-option,-Wextra) \
|
||||
-Wno-unused-parameter -Wno-missing-field-initializers -Wno-sign-compare
|
||||
ccflags-y += -I$(src)/../../include
|
||||
#ccflags-y += -DCONFIG_DEBUG_EXT_COPY_REMAP
|
||||
|
||||
obj-m := scst_cdrom.o scst_changer.o scst_disk.o scst_modisk.o scst_tape.o \
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
KBUILD_EXTRA_SYMBOLS=$(src)/../scst/src/Module.symvers
|
||||
ccflags-y += -I$(src)/../scst/include
|
||||
ccflags-y += $(call cc-option,-Wextra) -Wno-unused-parameter\
|
||||
-Wno-missing-field-initializers
|
||||
|
||||
obj-m := scst_local.o
|
||||
|
||||
@@ -5,6 +5,4 @@ KBUILD_EXTRA_SYMBOLS=$(src)/../../scst/src/Module.symvers \
|
||||
[ -e $$d ] || continue; echo $$d; break; done)
|
||||
ccflags-y += -I$(src)/../../scst/include
|
||||
|
||||
#ccflags-y += -Wextra -Wno-unused-parameter
|
||||
|
||||
obj-m += ib_srpt.o
|
||||
|
||||
Reference in New Issue
Block a user