Re: unused-variable warning is getting disabled with clang

2017-12-18 Thread Masahiro Yamada
2017-12-08 11:16 GMT+09:00 Sodagudi Prasad : > On 2017-12-06 22:26, Greg Kroah-Hartman wrote: >> >> 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

Re: unused-variable warning is getting disabled with clang

2017-12-07 Thread Sodagudi Prasad
On 2017-12-06 22:26, Greg Kroah-Hartman wrote: 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-va

Re: unused-variable warning is getting disabled with clang

2017-12-06 Thread Greg Kroah-Hartman
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 re

unused-variable warning is getting disabled with clang

2017-12-06 Thread Sodagudi Prasad
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? -- The Qualcomm Innovation Ce