Fix unused variable warnings

This commit is contained in:
Vinnie Falco
2017-07-20 08:15:28 -07:00
parent 58c976ea73
commit 8f4e7fd0a0
25 changed files with 54 additions and 51 deletions
+4 -1
View File
@@ -8,6 +8,7 @@
#include <beast/core.hpp>
#include <boost/asio.hpp>
#include <cstddef>
#include <iostream>
#include <memory>
#include <utility>
@@ -328,7 +329,7 @@ async_echo(AsyncStream& stream, CompletionToken&& token)
//]
int main()
int main(int, char** argv)
{
using address_type = boost::asio::ip::address;
using socket_type = boost::asio::ip::tcp::socket;
@@ -347,6 +348,8 @@ int main()
async_echo(sock,
[&](beast::error_code ec)
{
if(ec)
std::cerr << argv[0] << ": " << ec.message() << std::endl;
});
ios.run();
return 0;