From 4accfdd95140fcfc9cd43c246c5b8581f815019e Mon Sep 17 00:00:00 2001 From: Nathan Hourt Date: Fri, 21 Aug 2020 11:42:57 -0500 Subject: [PATCH] Fix warnings --- include/fc/crypto/hash160.hpp | 2 +- src/network/http/websocket.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fc/crypto/hash160.hpp b/include/fc/crypto/hash160.hpp index 28121bc..79a482c 100644 --- a/include/fc/crypto/hash160.hpp +++ b/include/fc/crypto/hash160.hpp @@ -64,7 +64,7 @@ class hash160 hash160 result(); private: - class impl; + struct impl; fc::fwd my; }; diff --git a/src/network/http/websocket.cpp b/src/network/http/websocket.cpp index 0f3aabb..54c48eb 100644 --- a/src/network/http/websocket.cpp +++ b/src/network/http/websocket.cpp @@ -282,7 +282,7 @@ namespace fc { namespace http { }).wait(); }); - _server.set_socket_init_handler( [this]( websocketpp::connection_hdl hdl, + _server.set_socket_init_handler( []( websocketpp::connection_hdl hdl, typename websocketpp::server::connection_type::socket_type& s ) { boost::asio::ip::tcp::no_delay option(true); s.lowest_layer().set_option(option); @@ -417,7 +417,7 @@ namespace fc { namespace http { const std::string& 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::tlsv1 ); try {