aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2018-05-09 18:54:15 -0700
committerErfan Abdi <erfangplus@gmail.com>2018-07-11 11:51:27 +0430
commit82cc402b29cef2a636e86ca789a56971648f8a62 (patch)
tree186fc399a06a14eefdcbab968c8a22a995e774cd
parentdce4f00afeed59546e3a82bd43ac537b66c0fb85 (diff)
qcacld-2.0: Disable spammy Clang warnings
This driver sucks and I am not fixing them. Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
-rw-r--r--drivers/staging/qcacld-2.0/Kbuild10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/staging/qcacld-2.0/Kbuild b/drivers/staging/qcacld-2.0/Kbuild
index 5b8dbcafd9d2..ba52ba8780af 100644
--- a/drivers/staging/qcacld-2.0/Kbuild
+++ b/drivers/staging/qcacld-2.0/Kbuild
@@ -1700,6 +1700,16 @@ ifeq ($(call cc-option-yn, -Wheader-guard),y)
EXTRA_CFLAGS += -Wheader-guard
endif
+# Disable certain flags for Clang as they are spammy and I'm not fixing them :^)
+ifeq ($(cc-name),clang)
+EXTRA_CFLAGS += -Wno-shift-count-negative
+EXTRA_CFLAGS += -Wno-enum-conversion
+EXTRA_CFLAGS += -Wno-typedef-redefinition
+EXTRA_CFLAGS += -Wno-shift-count-overflow
+EXTRA_CFLAGS += -Wno-non-literal-null-conversion
+EXTRA_CFLAGS += -Wno-logical-not-parentheses
+endif
+
# If the module name is not "wlan", then the define MULTI_IF_NAME to be the
# same a the QCA CHIP name. The host driver will then append MULTI_IF_NAME to
# any string that must be unique for all instances of the driver on the system.