This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
promote a warning from -pedantic
- From: Dave Love <d dot love at dl dot ac dot uk>
- To: bug-gcc at gnu dot org
- Date: 22 Jul 2002 14:24:41 +0100
- Subject: promote a warning from -pedantic
You only get a warning about the following example from gcc 3.1 and
earlier if you use -pedantic, whereas at least two proprietary
compilers (fairly current Sun and SGI) actually give a fatal error. I
think it should get a warning by default.
void foo (float);
void
foo (bar)
float bar;
{
return;
}
For what it's worth, this is derived from a real example (changes to
Emacs).