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
On Tue, Sep 06, 2005 at 10:28:55PM -0700, Mark Mitchell wrote:
> David O'Brien wrote:
>
> >I'd really like to see this be fixed in GCC 4.0 also.
> >May I commit it to the GCC 4.0 branch?
>
> If it is a regression, then, yes, you may. If not, you'll have to lobby
> the C front end maintainers. If they think it's a worthwhile change, I
> shall not object.
>
> Thanks,
Joseph and Richard,
Is the -Wredundant-decls patch I posted here:
http://gcc.gnu.org/ml/gcc-patches/2005-09/msg00006.html
acceptable for the 4_0 and 3_4 branches?
In FreeBSD we are using it in our (gcc version 3.4.4 [FreeBSD] 20050518)
compiler, since it allows us to fix our kernel to properly
forward declare static variables, and not have to incorrectly
forward declare them as extern.
Thanks.
--
Craig Rodrigues
rodrigc@crodrigues.org