Article View: gnu.gcc.bug
Article #1769spurious argument mismatch message?
From: David Fuchs
Date: Mon, 10 Oct 1988 20:02
Date: Mon, 10 Oct 1988 20:02
20 lines
1129 bytes
1129 bytes
The following file, compiled with no flags, with GNU-CC version 1.28, gives
the error message:
foo.c:5: argument `parm' doesn't match function prototype
which appears to be spurious. Perhaps there is some question about the
what it means to use function prototypes even when the function itself
is declared with "old" syntax; I haven't looked at the standard, but other
compilers seem happy to accept this sort of thing.
Thanks for all the wonderful stuff, by the way.
-David Fuchs (late of the TeX project, now "frame!drf"@sun.com )
------------------------------------------------------------------------
void foo(short); /* Prototype */
void foo(parm) /* Actual */
short parm;
{
}
Technical Details
Message-ID:
<8810102002.AA19547@troy.frame.com>Path:
arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!SUN.COM!frame!troy!drfShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!SUN.COM!frame!troy!drf From: frame!troy!drf@SUN.COM (David Fuchs) Newsgroups: gnu.gcc.bug Subject: spurious argument mismatch message? Message-ID: <8810102002.AA19547@troy.frame.com> Date: 10 Oct 88 20:02:09 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 19