redundant warning : ... later static

Philippe De Muyter phdm@macqel.be
Fri Apr 10 04:20:00 GMT 1998


Compiling the following testcase, with gcc (gcc-2.8.1 or egcs-1.0.2),
without any -W flags gives the same warning twice !

-----------------------------------------------------------------------
f()
	{
	g();
	}

static g()
	{
	}
-----------------------------------------------------------------------

latestatic.c:7: warning: `g' was declared implicitly `extern' and later `static'
latestatic.c:3: warning: previous declaration of `g'
latestatic.c:7: warning: `g' was declared implicitly `extern' and later `static'

Can someone familiar with that look at it ? (Otherwise I'll try it myself)

Philippe De Muyter



More information about the Gcc mailing list