Re: [asio-users] missing return in basic_socket.hpp
Brought to you by:
chris_kohlhoff
From: Christopher K. <ch...@ko...> - 2006-03-06 00:59:56
|
Hi Arvid, --- Arvid Norberg <c9...@cs...> wrote: > basic_socket.hpp:799 looks like this: > > template <typename Error_Handler> > endpoint_type remote_endpoint(Error_Handler error_handler) const > { > this->service.remote_endpoint(this->implementation, > error_handler); > } > > and I get a warning with GCC 3.3 (Apple): > > ../../asio/include/asio/basic_socket.hpp:802: warning: no return > statement in function returning non-void > ../../asio/include/asio/basic_socket.hpp:802: warning: control > reaches end of non-void function > > I asssume there's supposed to be a return statement there. Yep, just checked in the fix. Thanks! Cheers, Chris |