This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiler errors after upgrading from GCC 3.4 to GCC 4.1


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]