"throw" causes warning: control reaches end of non-void function
Jeffrey A Law
law@cygnus.com
Wed Nov 5 20:17:00 GMT 1997
In message < g7mamd7dx.fsf@scrye.com >you write:
>
> i've looked over the mailing list archives, and couldn't find anything
> on this one (do you plan on putting a text search on those things,
> btw? they are getting quite large...)
It would be nice... However I don't know how to set this up.
> anyway, with both the 970924 and 971031 snapshots, i got the following
> warning from -Wall:
>
> /opt/local/egcs-971031/include/g++/list.h: In method `struct __list_node<RT
> F_Node *> * list<RTF_Node *,__default_alloc_template<false,0> >::create_nod
> e(class RTF_Node *const &)':
> /opt/local/egcs-971031/include/g++/list.h:159: warning: control reaches end
> of non-void function `list<RTF_Node *,__default_alloc_template<false,0> >:
> :create_node(RTF_Node *const &)'
Quite likely the "EH flow control problem" that we've mentioned --
basically the existing code doesn't compute a correct flow control
graph. As a result we can get a variety of bogus warnings.
The good news is we fixed a bunch of these problems after the 1031
snapshot :-)
jeff
More information about the Gcc
mailing list