This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
What happened to "-Wreturn-type"?
- To: egcs-bugs at cygnus dot com
- Subject: What happened to "-Wreturn-type"?
- From: Mat Hostetter <mat at curl dot com>
- Date: 29 Oct 1998 09:39:45 -0500
The -Wreturn-type and -Wno-return-type switches are now rejected. I
checked the egcs-19981026 sources and these options are parsed in
gcc/c-decl.c but not listed in gcc/toplev.c. -Wreturn-type is still
mentioned in gcc/invoke.texi so I assume it's still supported.
I don't know if there are any more options that have this problem.
poison-ivy:~/tmp$ egcs -Wreturn-type -c foo.c
cc1: Invalid option `-Wreturn-type'
poison-ivy:~/tmp$ gcc -Wreturn-type -c foo.c
foo.c:2: warning: return-type defaults to `int'
-Mat