This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Compiler errors after upgrading from GCC 3.4 to GCC 4.1
- From: "Devendra Badhani" <dbadhani at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 29 Mar 2008 19:15:45 -0700
- Subject: Re: Compiler errors after upgrading from GCC 3.4 to GCC 4.1
- References: <771650c60803291913n4df70491n999763aae4092a26@mail.gmail.com>
Hello GCC gurus,
When I upgraded gcc from 3.4 to 4.1, I see some errors which were
earlier reported as warnings.
----------------------------------------------------------------------------------------------------------
***.h:787: error: static declaration of foo follows non-static declaration
-----------------------------------------------------------------------------------------------------------
The function foo is declared as extern and defined as static.
I know this is not correct, and the right way to fix is to remove
static from the definition. But this is some legacy code I don't have
much control over and there's tons of it. Is there a way I could
suppress this error, or make it a warning?
Thanks much,
Deven