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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux