What happened to "-Wreturn-type"?

Mat Hostetter mat@curl.com
Thu Oct 29 06:39:00 GMT 1998


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



More information about the Gcc-bugs mailing list