From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mauro Carvalho Chehab Subject: Re: Lots of new warnings with gcc-7.1.1 Date: Wed, 12 Jul 2017 09:37:56 -0300 Message-ID: <20170712093552.15aebacd@vento.lan> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Tejun Heo , Jean Delvare , Guenter Roeck , Bartlomiej Zolnierkiewicz , Sathya Prakash , "James E.J. Bottomley" , Greg Kroah-Hartman , "the arch/x86 maintainers" , xen-devel , linux-block , Linux Media Mailing List , IDE-ML , "linux-fbdev@vger.kernel.org" , Network Development , Alan Cox To: Linus Torvalds Return-path: In-Reply-To: Sender: linux-ide-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Em Tue, 11 Jul 2017 15:35:15 -0700 Linus Torvalds escreveu: > [ Very random list of maintainers and mailing lists, at least > partially by number of warnings generated by gcc-7.1.1 that is then > correlated with the get_maintainers script ] Under drivers/media, I fixed a bunch of gcc 7.1 warnings before the merge window. While most were just noise, some actually pointed to human errors. Now, gcc-7.1.1 produces only 6 warnings with W=1 on x86_64 (allyesconfig), either due to unused-but-set-variable or unused-const-variable. I guess both warning options are disabled by default. Anyway, I have patches to fix them already. I'll send you later. The atomisp staging driver is a completely different beast, with would produce itself a huge amount of warnings. I ended by adding some logic on drivers/staging/media/atomisp/ Makefiles to disable them: ccflags-y += $(call cc-disable-warning, missing-declarations) ccflags-y += $(call cc-disable-warning, missing-prototypes) ccflags-y += $(call cc-disable-warning, unused-but-set-variable) ccflags-y += $(call cc-disable-warning, unused-const-variable) ccflags-y += $(call cc-disable-warning, suggest-attribute=format) ccflags-y += $(call cc-disable-warning, implicit-fallthrough) (there's actually one patch pending related to atomisp, that I'll also be sending you soon - meant to avoid warnings if compiled with an older gcc version) Thanks, Mauro