This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] -Wredundant-decls, do not warn for static forward decl
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Craig Rodrigues <rodrigc at crodrigues dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 1 Sep 2005 10:54:31 +0000 (UTC)
- Subject: Re: [PATCH] -Wredundant-decls, do not warn for static forward decl
- References: <20050828001615.GA3402@crodrigues.org><Pine.LNX.4.61.0508302221010.4521@digraph.polyomino.org.uk><20050831051411.GA94358@crodrigues.org> <Pine.LNX.4.61.0508311014180.9214@digraph.polyomino.org.uk><20050901030205.GA39675@crodrigues.org>
On Wed, 31 Aug 2005, Craig Rodrigues wrote:
> Based on this feedback, I want to change my patch as follows:
>
> * c-decl.c (diagnose_mismatched_decls): With -Wredundant-decls,
> do not issue warning for a variable definition following
> a declaration.
This version and associated testcase are OK for mainline.
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)