Received: by 10.223.176.5 with SMTP id f5csp26565wra; Tue, 6 Feb 2018 16:25:46 -0800 (PST) X-Google-Smtp-Source: AH8x226acCZNn6GqQmOSk8wt6zdo/4tbusfckIr2FJk1EQRVvk9d6F9Uh24TOMUhR54FSW/UBJjJ X-Received: by 2002:a17:902:b604:: with SMTP id b4-v6mr4189091pls.32.1517963146606; Tue, 06 Feb 2018 16:25:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517963146; cv=none; d=google.com; s=arc-20160816; b=KJc03lZhaX/Gq1Gg7cC44MddAnmdIqBrgv08wjU8dg1wWZdZBFYc3S31MISESecYDG FK26gyOmk8MsA0vV3cxmG2iDc3dkG0UgKPlR3nnYPFF9fdM8GCpZse48rb7lhwYfvI15 CIOWAmPVpudCub8RUOi7SqQwL/pWz24m6xwfygFJBzknQiukwi3EUYL1OZNpxW/bWbml oDEKB0ulyXzP0/26HAO7kfGyfHyh8txF0A/eC8MX2cN/v6yM3XJRXb1yoUmXv46j5sDt 4/r26Vm1HfkMRYmiwgCjm3dHQn4BZOoSle3pspCJUZDaxbxEZIB+BnwsdG7NP54ywfZa fucg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=lVyKPZBpXfSgmhutddcQuyA7IvvdO/Kx8l4zdJFpkAE=; b=XZuvKDYfKdLNKL4wGZiLIAAmT6MF/6S3MtEDxv7HToTt/4CGGlAhg1dzsiZb55a3js jqCMxSZEBMU1ppA0xv+MyVRceiTXTffAtQB3L/cUrFGnUJdIiMUxEMao/8EkPmFlZqe+ b2+LYfJsoZWWR3rWYkq+cWAVv5Ql83eYox7YnMsnIn5Yjnvzqpx2zxAgRedt6a6tztX5 tx5XqI94mX8bdtPh97U29BHPrBU0hx/jo4mPKdFXoMo58Z4ptwEmxMTWu/lsCJvTiAN+ wuWNI/IgsLN0TOVJCvREO64vA4GaFEj9HN12mLz5p0EhpecYLWHUHOAlqcrnpXxwSaMq ylLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=mihgZX9n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x19si161849pge.2.2018.02.06.16.24.45; Tue, 06 Feb 2018 16:25:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=mihgZX9n; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932165AbeBGAXf (ORCPT + 99 others); Tue, 6 Feb 2018 19:23:35 -0500 Received: from conssluserg-04.nifty.com ([210.131.2.83]:53862 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932112AbeBGAXd (ORCPT ); Tue, 6 Feb 2018 19:23:33 -0500 Received: from mail-vk0-f54.google.com (mail-vk0-f54.google.com [209.85.213.54]) (authenticated) by conssluserg-04.nifty.com with ESMTP id w170NMql010739; Wed, 7 Feb 2018 09:23:22 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com w170NMql010739 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1517963003; bh=lVyKPZBpXfSgmhutddcQuyA7IvvdO/Kx8l4zdJFpkAE=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=mihgZX9nDkiinpFSNonSObCGHsa1LYD7R7HMKT0LKTNVzVsyMkL3Ayu7hC//ioCfL yb4vHp0+ZYEMrGNiq+BxZvqrlS6YgzOlPItxoS7aSoy/QYFEkCcn4rXRzZZfFTtRjr IuuLmTn2dHND2FoJ4SfdruoOQFzn0JTqgUwfnKDNMFoqYWFyPzW+xjOoyD7L/rBOmQ 4M1Vt5FlS1CJ17Y6rlBr1VohQ1SYax5roeVSs5Sm58kHpNu4IcUByVAyW7mWATJT+y fzSEaFjQu/ya4qKy4Pep8ag7dSJse7vZQwAHi7VQXCPS4Av2axBFjQkpRg1rGl6IA3 82/T332UTiEbw== X-Nifty-SrcIP: [209.85.213.54] Received: by mail-vk0-f54.google.com with SMTP id g83so2334258vki.4; Tue, 06 Feb 2018 16:23:22 -0800 (PST) X-Gm-Message-State: APf1xPB4hzjBbQXNsFfkEiTndJkXw+sRywMsaf2+LMQqDJoRQVqfl/0x 73ighRlbZLwSmVY0fxfLa4KrtH4RDp9qpfLcu9c= X-Received: by 10.31.92.142 with SMTP id q136mr3826828vkb.29.1517963001805; Tue, 06 Feb 2018 16:23:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.83.212 with HTTP; Tue, 6 Feb 2018 16:22:41 -0800 (PST) In-Reply-To: <1517960811-21674-1-git-send-email-psodagud@codeaurora.org> References: <1517960811-21674-1-git-send-email-psodagud@codeaurora.org> From: Masahiro Yamada Date: Wed, 7 Feb 2018 09:22:41 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kbuild: clang: disable unused variable warnings only when constant To: Prasad Sodagudi Cc: Greg Kroah-Hartman , segher@kernel.crashing.org, Greg Hackmann , Linux Kbuild mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-02-07 8:46 GMT+09:00 Prasad Sodagudi : > Currently, GCC disables -Wunused-const-variable, but not > -Wunused-variable, so warns unused variables if they are > non-constant. > > While, Clang does not warn unused variables at all regardless of > the const qualifier because -Wno-unused-const-variable is implied > by the stronger option -Wno-unused-variable. > > Disable -Wunused-const-variable instead of -Wunused-variable so that > GCC and Clang work in the same way. > > Signed-off-by: Prasad Sodagudi > Reviewed-by: Masahiro Yamada Applied to linux-kbuild/kbuild. Thanks! -- Best Regards Masahiro Yamada