From 2c2ac8027c05c2a5f59a8a37a10a9bfecb4a7447 Mon Sep 17 00:00:00 2001 From: Damian Jarek Date: Sun, 7 Jul 2019 16:56:56 +0200 Subject: [PATCH] Fix unused variable warnings in tests Signed-off-by: Damian Jarek --- CHANGELOG.md | 1 + test/beast/core/basic_stream.cpp | 1 - test/beast/core/file_test.hpp | 1 - test/beast/core/flat_stream.cpp | 1 - 4 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d9d425c4..60c7f41a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ Version 264: * Handle overflow in max size calculation in `basic_dynamic_body` +* Fix unused variable warnings in tests -------------------------------------------------------------------------------- diff --git a/test/beast/core/basic_stream.cpp b/test/beast/core/basic_stream.cpp index 439cd9dc..f4f6a58c 100644 --- a/test/beast/core/basic_stream.cpp +++ b/test/beast/core/basic_stream.cpp @@ -1204,7 +1204,6 @@ public: } { - error_code ec; stream_type s(ioc); async_teardown(role_type::server, s, [](error_code) diff --git a/test/beast/core/file_test.hpp b/test/beast/core/file_test.hpp index 5178b0f1..fac20d4d 100644 --- a/test/beast/core/file_test.hpp +++ b/test/beast/core/file_test.hpp @@ -72,7 +72,6 @@ test_file() auto const remove = [](fs::path const& path) { - error_code ec; fs::remove(path); }; diff --git a/test/beast/core/flat_stream.cpp b/test/beast/core/flat_stream.cpp index 3ce03e36..d2ce65fa 100644 --- a/test/beast/core/flat_stream.cpp +++ b/test/beast/core/flat_stream.cpp @@ -148,7 +148,6 @@ public: BEAST_EXPECT(buffer_bytes(bs) <= detail::flat_stream_base::max_size); flat_stream s(ioc); - error_code ec; s.async_write_some(bs, [](error_code, std::size_t) {