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: 32831 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BFA55203F4 for ; Tue, 1 Jul 2014 00:43:16 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id y10sf43008130pdj.1 for ; Mon, 30 Jun 2014 17:43:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=ORAmDjIyUyGXpCJWj4LXH4JI+3fAkI4JuPBp3UwTvGo=; b=gPaZbhEOywvcJ4n312K17tQdlJ2MlszTtO33HHv84/BqPVc7wy0u/xcAROaakpbD71 qbiAnD18EgaDL7h351Nuup7pDhhnrqPtaicskPVML3xq158MkU/msXhhqBs3uFVej/9O MPQR3HtkJngG0JGn0VZrx4CKEvbqf6Q0csQWFU9jFjBEXtvPJK7D8yF/E8I2GvoG4baI raDUI6BdXcUIg7S2SAXtvKhLFLwLegsHGFGGqVL1CEffCDF1ugnTL3Acs9jvzObVJl0m BgxVZjikegfMHYxMT5y4fu1zdO7BWMO20Mo069Wvk91sVi4LwuBOXKFmk8z+4HmjR7oP KT5Q== X-Gm-Message-State: ALoCoQlIx0YPuVtQ54tXMiQxXMWbuzgzR5/FU3eHiIrVTYSJTf/SMs8Wd1y9dHdcOsdjGc5Jkmq8 X-Received: by 10.66.145.33 with SMTP id sr1mr23368219pab.18.1404175395954; Mon, 30 Jun 2014 17:43:15 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.37.18 with SMTP id q18ls1821334qgq.70.gmail; Mon, 30 Jun 2014 17:43:15 -0700 (PDT) X-Received: by 10.58.119.75 with SMTP id ks11mr42353806veb.20.1404175395745; Mon, 30 Jun 2014 17:43:15 -0700 (PDT) Received: from mail-vc0-x22e.google.com (mail-vc0-x22e.google.com [2607:f8b0:400c:c03::22e]) by mx.google.com with ESMTPS id pz7si10788130vcb.5.2014.06.30.17.43.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Jun 2014 17:43:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::22e as permitted sender) client-ip=2607:f8b0:400c:c03::22e; Received: by mail-vc0-f174.google.com with SMTP id hy4so8336789vcb.33 for ; Mon, 30 Jun 2014 17:43:15 -0700 (PDT) X-Received: by 10.52.117.209 with SMTP id kg17mr33435164vdb.28.1404175395654; Mon, 30 Jun 2014 17:43:15 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp178930vcb; Mon, 30 Jun 2014 17:43:15 -0700 (PDT) X-Received: by 10.68.200.10 with SMTP id jo10mr55793703pbc.143.1404175394813; Mon, 30 Jun 2014 17:43:14 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ze10si25008791pac.23.2014.06.30.17.43.14; Mon, 30 Jun 2014 17:43:14 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752543AbaGAAnB (ORCPT + 27 others); Mon, 30 Jun 2014 20:43:01 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:64975 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750840AbaGAAm7 (ORCPT ); Mon, 30 Jun 2014 20:42:59 -0400 Received: by mail-pd0-f171.google.com with SMTP id fp1so9100027pdb.2 for ; Mon, 30 Jun 2014 17:42:59 -0700 (PDT) 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-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: behanw@converseincode.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::22e as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@ Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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