This is the mail archive of the gcc@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]

redundant warning : ... later static


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


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