public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Compiler errors after upgrading from GCC 3.4 to GCC 4.1
       [not found] <771650c60803291913n4df70491n999763aae4092a26@mail.gmail.com>
@ 2008-03-30  2:16 ` Devendra Badhani
  0 siblings, 0 replies; only message in thread
From: Devendra Badhani @ 2008-03-30  2:16 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-30  2:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <771650c60803291913n4df70491n999763aae4092a26@mail.gmail.com>
2008-03-30  2:16 ` Compiler errors after upgrading from GCC 3.4 to GCC 4.1 Devendra Badhani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).