This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [Patch] Remove warnings from timezone build when using latest GCC
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Steve Ellcey <sellcey at imgtec dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Wed, 7 Oct 2015 19:45:11 +0000
- Subject: Re: [Patch] Remove warnings from timezone build when using latest GCC
- Authentication-results: sourceware.org; auth=none
- References: <3e5a8fac-dd5c-4cff-8b4e-a036dfeb00d9 at BAMAIL02 dot ba dot imgtec dot org>
On Wed, 7 Oct 2015, Steve Ellcey wrote:
> So my question is, what do we want to do in glibc? It seems
> like there are two options, either getting the tz group to
> add unused attributes to these definitions or to compile the
> timezone files with the -Wno-unused-variable option. I am
> inclined to go with the second option and created a patch
> to do that, what do others think?
I think adding the option is fine as long as it works with all GCC
versions supported for building glibc (whether through being directly
recognized, or through the general support for ignoring unknown -Wno-
options if no warnings are generated) and as long as there's a comment
explaining why this option is present.
--
Joseph S. Myers
joseph@codesourcery.com