Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1303847
| From | Joe Perches <joe@perches.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: Build failure: -Wno-unused-const-variable DNE on old GCC |
| Date | 2016-01-07 20:40 +0100 |
| Message-ID | <qOozF-4bb-25@gated-at.bofh.it> (permalink) |
| References | <qOnWW-3Gz-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, 2016-01-07 at 10:54 -0800, Brian Norris wrote:
> Hi,
>
> I'm using a GCC 4.6.3 compiler for some compile tests, and I noticed
> that commit 2cd55c68c0a4 ("cxl: Fix build failure due to -Wunused-variable
> behaviour change") breaks my builds, because the
> -Wno-unused-const-variable doesn't exist on GCC 4.6.3.
>
> drivers/misc/cxl/base.c: At top level:
> cc1: error: unrecognized command line option "-Wno-unused-const-variable" [-Werror]
>
> Any thoughts on how to best fix this? I'd like not to have to scrounge
> up a new cross compiler just for build tests.
drivers/misc/cxl/Makefile:ccflags-y := -Werror -Wno-unused-const-variable
You could take that -Wno-unused-const-variable out of the
Makefile or maybe add something like:
$(call cc-ifversion, -ge, 0530, -Wno-unused-const-variable)
or whatever gcc version actually added that unused-const-variable check
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Build failure: -Wno-unused-const-variable DNE on old GCC Brian Norris <computersforpeace@gmail.com> - 2016-01-07 20:00 +0100
Re: Build failure: -Wno-unused-const-variable DNE on old GCC Joe Perches <joe@perches.com> - 2016-01-07 20:40 +0100
Re: Build failure: -Wno-unused-const-variable DNE on old GCC Michal Marek <mmarek@suse.com> - 2016-01-07 20:50 +0100
Re: Build failure: -Wno-unused-const-variable DNE on old GCC Joe Perches <joe@perches.com> - 2016-01-07 21:00 +0100
Re: Build failure: -Wno-unused-const-variable DNE on old GCC Brian Norris <computersforpeace@gmail.com> - 2016-01-07 21:20 +0100
[PATCH] misc: cxl: fix build for GCC 4.6.x Brian Norris <computersforpeace@gmail.com> - 2016-01-07 21:40 +0100
Re: [PATCH] misc: cxl: fix build for GCC 4.6.x Michael Ellerman <mpe@ellerman.id.au> - 2016-01-08 03:20 +0100
Re: Build failure: -Wno-unused-const-variable DNE on old GCC Arnd Bergmann <arnd@arndb.de> - 2016-01-07 21:30 +0100
Re: Build failure: -Wno-unused-const-variable DNE on old GCC Daniel Axtens <dja@axtens.net> - 2016-01-08 00:00 +0100
Re: Build failure: -Wno-unused-const-variable DNE on old GCC Brian Norris <computersforpeace@gmail.com> - 2016-01-08 00:10 +0100
Re: Build failure: -Wno-unused-const-variable DNE on old GCC Ian Munsie <imunsie@au1.ibm.com> - 2016-01-08 02:40 +0100
Re: Build failure: -Wno-unused-const-variable DNE on old GCC Brian Norris <computersforpeace@gmail.com> - 2016-01-08 03:10 +0100
Re: Build failure: -Wno-unused-const-variable DNE on old GCC Michael Ellerman <mpe@ellerman.id.au> - 2016-01-08 03:20 +0100
RE: Build failure: -Wno-unused-const-variable DNE on old GCC David Laight <David.Laight@ACULAB.COM> - 2016-01-08 11:20 +0100
Re: Build failure: -Wno-unused-const-variable DNE on old GCC Ian Munsie <imunsie@au1.ibm.com> - 2016-01-08 02:40 +0100
csiph-web