Fix unused parameter warnings and missing includes:

fix #127

* Added beast::detail::ignore_unused based on boost::ignore_unused
* Added -Wextra compilation flag when building with gcc
* Fixed all unused parameter warnings with ignore_unused
* Fixed all missing includes when building each .hpp separately
This commit is contained in:
Andrew Whatson authored and Vinnie Falco committed 2016-10-20 17:22:40 -04:00
1 parent 8b0d2857b8
commit 95c37e23f0
17 files changed
+47 -9

No files matched your search

@@ -8,6 +8,7 @@
#ifndef BEAST_WEBSOCKET_SYNC_ECHO_PEER_H_INCLUDED
#define BEAST_WEBSOCKET_SYNC_ECHO_PEER_H_INCLUDED
#include <beast/core/placeholders.hpp>
#include <beast/core/streambuf.hpp>
#include <beast/websocket.hpp>
#include <boost/optional.hpp>
@@ -36,7 +37,7 @@ private:
std::thread thread_;
public:
sync_echo_server(bool server, endpoint_type ep)
sync_echo_server(bool /*server*/, endpoint_type ep)
: sock_(ios_)
, acceptor_(ios_)
{