From patchwork Tue Jul 1 00:42:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Behan Webster X-Patchwork-Id: 4456141 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D7DEFBEEAA for ; Tue, 1 Jul 2014 00:43:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 15CFC203DA for ; Tue, 1 Jul 2014 00:43:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 10F8820254 for ; Tue, 1 Jul 2014 00:43:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752374AbaGAAnA (ORCPT ); Mon, 30 Jun 2014 20:43:00 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:60287 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750815AbaGAAm7 (ORCPT ); Mon, 30 Jun 2014 20:42:59 -0400 Received: by mail-pa0-f54.google.com with SMTP id et14so9561502pad.13 for ; Mon, 30 Jun 2014 17:42:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=converseincode.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hUFmn431BVeO96dgVFLdImOj9M/sYxf6/ZKwzXF8dEM=; b=G05eJpF/FFXoctq2BqtlTbLyHoRdNNeviymjBB/X0LYmHXJ1M4akK3HL/009riISrz n0h3njRga5t0P/AoffSPoX9Gk5wo9yPL91+4GOtlQ5uJT52+auzHGSh8x36qxh9f81Qk uJ5cvwWhNcNLvwr63s2DvYDOC02tXV+MNgrPs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hUFmn431BVeO96dgVFLdImOj9M/sYxf6/ZKwzXF8dEM=; b=F7u6mD9RXj91ZBceuVZchcaxmZp6D+gY23K3W1+kc+Pd7usyPQNS4yGZko9pJkZVCh 7Uy3bMptXqtPhWH3sGhPlhU/tWJW2DroY203Tmo8jRknGLan1YPVkFK/Nie7expl7125 ZZNdKJIGbdZHxIkwLUWb2HPo805pcudV+UNP28/G9uw5XKegtqh40SPROOpd6WpV8PYZ xAJkvWh0nSVGFKG7iybgzSZfneWTIS9goKlUPvoLz5DlO/dqJp7Ft9MPrPmQz/qKNJLv yy8kUs9FVLTrHEqr7lcysVrlhhxto+C3TbuEIipIHO94wKt3uBH7EFnt6P2p18JIxSnj UXIg== X-Gm-Message-State: ALoCoQkGka2MU8Ioq4MOVu6whXqGNDfmT7bqDmXxr+QQpsNxGhqqiA0Xs8GWlGZIItGJ9Z2NkkLf X-Received: by 10.68.135.42 with SMTP id pp10mr56248026pbb.58.1404175379376; Mon, 30 Jun 2014 17:42:59 -0700 (PDT) Received: from galdor.websterwood.com (d207-6-123-58.bchsia.telus.net. [207.6.123.58]) by mx.google.com with ESMTPSA id gx10sm27857685pbd.81.2014.06.30.17.42.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Jun 2014 17:42:58 -0700 (PDT) From: behanw@converseincode.com To: mmarek@suse.cz, bp@alien8.de Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, dl9pf@gmx.de, pageexec@freemail.hu, mcharleb@gmail.com, Behan Webster Subject: [PATCH] kbuild, LLVMLinux: only use warnings when using clang Date: Mon, 30 Jun 2014 17:42:26 -0700 Message-Id: <1404175346-12330-1-git-send-email-behanw@converseincode.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <20140629201308.GC12943@pd.tnic> References: <20140629201308.GC12943@pd.tnic> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Behan Webster Only consider clang warnings in Kbuild when using the clang compiler. Signed-off-by: Behan Webster --- 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