[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1404175346-12330-1-git-send-email-behanw@converseincode.com>
Date: Mon, 30 Jun 2014 17:42:26 -0700
From: behanw@...verseincode.com
To: mmarek@...e.cz, bp@...en8.de
Cc: linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org,
dl9pf@....de, pageexec@...email.hu, mcharleb@...il.com,
Behan Webster <behanw@...verseincode.com>
Subject: [PATCH] kbuild, LLVMLinux: only use warnings when using clang
From: Behan Webster <behanw@...verseincode.com>
Only consider clang warnings in Kbuild when using the clang compiler.
Signed-off-by: Behan Webster <behanw@...verseincode.com>
---
scripts/Makefile.extrawarn | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn
index 6564350..e350127 100644
--- a/scripts/Makefile.extrawarn
+++ b/scripts/Makefile.extrawarn
@@ -26,7 +26,7 @@ warning-1 += $(call cc-option, -Wmissing-include-dirs)
warning-1 += $(call cc-option, -Wunused-but-set-variable)
warning-1 += $(call cc-disable-warning, missing-field-initializers)
-# Clang
+ifeq ($(COMPILER),clang)
warning-1 += $(call cc-disable-warning, initializer-overrides)
warning-1 += $(call cc-disable-warning, unused-value)
warning-1 += $(call cc-disable-warning, format)
@@ -35,6 +35,7 @@ warning-1 += $(call cc-disable-warning, sign-compare)
warning-1 += $(call cc-disable-warning, format-zero-length)
warning-1 += $(call cc-disable-warning, uninitialized)
warning-1 += $(call cc-option, -fcatch-undefined-behavior)
+endif
warning-2 := -Waggregate-return
warning-2 += -Wcast-align
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists