Fix warnings

This commit is contained in:
Nathan Hourt 2020-08-21 11:42:57 -05:00
parent fde60bdbbc
commit 4accfdd951
No known key found for this signature in database
GPG key ID: B4344309A110851E
2 changed files with 3 additions and 3 deletions

View file

@ -64,7 +64,7 @@ class hash160
hash160 result(); hash160 result();
private: private:
class impl; struct impl;
fc::fwd<impl,117> my; fc::fwd<impl,117> my;
}; };

View file

@ -282,7 +282,7 @@ namespace fc { namespace http {
}).wait(); }).wait();
}); });
_server.set_socket_init_handler( [this]( websocketpp::connection_hdl hdl, _server.set_socket_init_handler( []( websocketpp::connection_hdl hdl,
typename websocketpp::server<T>::connection_type::socket_type& s ) { typename websocketpp::server<T>::connection_type::socket_type& s ) {
boost::asio::ip::tcp::no_delay option(true); boost::asio::ip::tcp::no_delay option(true);
s.lowest_layer().set_option(option); s.lowest_layer().set_option(option);
@ -417,7 +417,7 @@ namespace fc { namespace http {
const std::string& forward_header_key ) const std::string& forward_header_key )
: generic_websocket_server_impl( forward_header_key ) : generic_websocket_server_impl( forward_header_key )
{ {
_server.set_tls_init_handler( [this,server_pem,ssl_password]( websocketpp::connection_hdl hdl ) { _server.set_tls_init_handler( [server_pem,ssl_password]( websocketpp::connection_hdl hdl ) {
context_ptr ctx = websocketpp::lib::make_shared<boost::asio::ssl::context>( context_ptr ctx = websocketpp::lib::make_shared<boost::asio::ssl::context>(
boost::asio::ssl::context::tlsv1 ); boost::asio::ssl::context::tlsv1 );
try { try {