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: Bernd Schmidt <bschmidt at redhat dot com>
- To: sellcey at imgtec dot com, Trevor Saunders <tbsaunde at tbsaunde dot org>
- Cc: 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: Wed, 7 Oct 2015 14:00:24 +0200
- 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>
On 10/07/2015 12:44 AM, Steve Ellcey wrote:
So, is there any consensus on this issue?
If I understood Jakub correctly he agreed with my reasoning. So for the
moment we'll leave things as they are and revisit the issue if and when
other cases pop up.
I cannot build top-of-tree
glibc with top-of-tree GCC due to this warning coming from
timezone/private.h. If GCC is going to keep this warning then I should
talk to the owners of the header file (tz group, not glibc) and see if
they would be willing to add a unused attribute to it.
I think not using -Wall -Werror is the right fix.
Bernd