From eaa3d5f9758a0125c6b8154786be03ea7bd2f4d1 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Tue, 19 Feb 2019 19:23:40 -0800 Subject: [PATCH] Tidy up some warnings --- example/echo-op/echo_op.cpp | 1 - test/beast/core/rate_policy.cpp | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/example/echo-op/echo_op.cpp b/example/echo-op/echo_op.cpp index c4b39560..90035823 100644 --- a/example/echo-op/echo_op.cpp +++ b/example/echo-op/echo_op.cpp @@ -361,7 +361,6 @@ int main(int argc, char** argv) auto const address{net::ip::make_address(argv[1])}; auto const port{static_cast(std::atoi(argv[2]))}; - using socket_type = net::ip::tcp::socket; using endpoint_type = net::ip::tcp::endpoint; // Create a listening socket, accept a connection, perform diff --git a/test/beast/core/rate_policy.cpp b/test/beast/core/rate_policy.cpp index c2099124..4f81a5ff 100644 --- a/test/beast/core/rate_policy.cpp +++ b/test/beast/core/rate_policy.cpp @@ -9,6 +9,7 @@ // Test that header file is self-contained. #include +#include #include @@ -21,8 +22,8 @@ public: void run() override { - unlimited_rate_policy{}; - simple_rate_policy{}; + boost::ignore_unused(unlimited_rate_policy{}); + boost::ignore_unused(simple_rate_policy{}); pass(); }