This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

What happened to "-Wreturn-type"?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]