This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
redundant warning : ... later static
- To: gcc2 at cygnus dot com (gcc mailing list), egcs at cygnus dot com (egcs mailing list)
- Subject: redundant warning : ... later static
- From: "Philippe De Muyter" <phdm at macqel dot be>
- Date: Fri, 10 Apr 1998 13:19:22 +0200 (MET DST)
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