lkml.org 
[lkml]   [2017]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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 :)

\
 
 \ /
  Last update: 2017-12-07 07:26    [W:0.031 / U:6.472 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site