[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171207062602.GA12561@kroah.com>
Date: Thu, 7 Dec 2017 07:26:02 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Sodagudi Prasad <psodagud@...eaurora.org>
Cc: Masahiro Yamada <yamada.masahiro@...ionext.com>,
Michal Marek <mmarek@...e.com>,
Greg Hackmann <ghackmann@...gle.com>,
linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: unused-variable warning is getting disabled with clang
On Wed, Dec 06, 2017 at 01:24:51PM -0800, Sodagudi Prasad wrote:
>
> Hi All,
>
> When kernel compiled with clang, following line is disabling the
> unused-variable warning. This is not the case with gcc.
> KBUILD_CFLAGS += $(call cc-disable-warning, unused-variable)
>
> Are there any specific reasons for disabling unused-variable with clang?
Try it and see why it is disabled :)
Powered by blists - more mailing lists