diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 333ad5d28..1bfb2b4c2 100755 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -774,7 +774,7 @@ namespace libtorrent { namespace detail #ifndef NDEBUG std::string err = exc.what(); #endif - } + }; void session_impl::connection_failed(boost::shared_ptr const& s , tcp::endpoint const& a, char const* message) diff --git a/src/torrent.cpp b/src/torrent.cpp index 16a2e3d2c..792e9c0f2 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -464,7 +464,7 @@ namespace libtorrent { std::cerr << e.what() << std::endl; assert(false); - } + }; #endif #ifndef TORRENT_DISABLE_DHT diff --git a/src/upnp.cpp b/src/upnp.cpp index c7e175681..2a0be360b 100644 --- a/src/upnp.cpp +++ b/src/upnp.cpp @@ -453,7 +453,7 @@ try catch (std::exception&) { assert(false); -} +}; #endif void upnp::post(rootdevice& d, std::stringstream const& soap @@ -687,7 +687,7 @@ void upnp::on_upnp_xml(asio::error_code const& e catch (std::exception&) { disable(); -} +}; void upnp::disable() { @@ -890,7 +890,7 @@ void upnp::on_upnp_map_response(asio::error_code const& e catch (std::exception&) { disable(); -} +}; void upnp::on_upnp_unmap_response(asio::error_code const& e , libtorrent::http_parser const& p, rootdevice& d, int mapping) try @@ -938,7 +938,7 @@ void upnp::on_upnp_unmap_response(asio::error_code const& e catch (std::exception&) { disable(); -} +}; void upnp::on_expire(asio::error_code const& e) try { @@ -976,7 +976,7 @@ void upnp::on_expire(asio::error_code const& e) try catch (std::exception&) { disable(); -} +}; void upnp::close() {