This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR28901 -Wunused-variable ignores unused const initialised variables
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: Bernd Schmidt <bschmidt at redhat dot com>
- Cc: sellcey at imgtec dot com, Trevor Saunders <tbsaunde at tbsaunde dot org>, Mark Wielaard <mjw at redhat dot com>, Jeff Law <law at redhat dot com>, Martin Sebor <msebor at gmail dot com>, Jakub Jelinek <jakub at redhat dot com>, Manuel López-Ibáñez <lopezibanez at gmail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 24 Oct 2015 15:47:25 +0200 (CEST)
- Subject: Re: [PATCH] PR28901 -Wunused-variable ignores unused const initialised variables
- Authentication-results: sourceware.org; auth=none
- References: <55F67C3F dot 40503 at redhat dot com> <1442336535 dot 16610 dot 41 dot camel at ubuntu-sellcey> <20150915171021 dot GF1847 at tucnak dot redhat dot com> <1442337649 dot 16610 dot 45 dot camel at ubuntu-sellcey> <55FCC8A2 dot 1070201 at gmail dot com> <5602EE9C dot 80506 at redhat dot com> <1443095603 dot 3102 dot 54 dot camel at bordewijk dot wildebeest dot org> <5603E4D3 dot 4050806 at redhat dot com> <1443111079 dot 8687 dot 23 dot camel at ubuntu-sellcey> <56042AEF dot 3030605 at redhat dot com> <20150925012420 dot GA14014 at tsaunders-iceball dot corp dot tor1 dot mozilla dot com> <1444171476 dot 8687 dot 278 dot camel at ubuntu-sellcey> <56150958 dot 6000906 at redhat dot com>
On Wed, 7 Oct 2015, Bernd Schmidt wrote:
> I think not using -Wall -Werror is the right fix.
Of course there is a fair chance (and I'll likely end up proposing
this for Wine) is that people will use -Wnounused-variable instead.
Which will disable _all_ such warnings, not only those coming from
const ... ... = ...;
in C header files.
Gerald