From abb4ea8ab96a9dbd5cd49e62cb72e79edffa2535 Mon Sep 17 00:00:00 2001 From: Steffen Schuemann Date: Tue, 6 Nov 2018 00:18:19 +0100 Subject: [PATCH] Fixed additional warnings and typos in readme. --- README.md | 4 ++-- test/filesystem_test.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e655e97..dad5d02 100644 --- a/README.md +++ b/README.md @@ -347,8 +347,8 @@ to the expected behavior. ### v1.0.3 (wip) -* Bigfix for #3, fixed missing inlines and added test to ensure including into - multiple implementation files works as expected. +* Bugfix for ([#3](https://github.com/gulrak/filesystem/issues/3)), fixed missing inlines + and added test to ensure including into multiple implementation files works as expected. * Building tests with `-Wall -Wextra -Werror` and fixed resulting issues. ### [v1.0.2](https://github.com/gulrak/filesystem/tree/v1.0.2) diff --git a/test/filesystem_test.cpp b/test/filesystem_test.cpp index 2a99156..31ae827 100644 --- a/test/filesystem_test.cpp +++ b/test/filesystem_test.cpp @@ -252,7 +252,7 @@ TEST_CASE("30.10.8.4.1 path constructors and destructor", "[filesystem][path][fs testUTF8Locale = true; } } - catch (std::runtime_error) { + catch (std::runtime_error&) { WARN("Couldn't create an UTF-8 locale!"); } if (testUTF8Locale) { @@ -1711,7 +1711,7 @@ TEST_CASE("30.10.15.19 is_empty", "[filesystem][options][fs.op.is_empty]") CHECK(!fs::is_empty("bar", ec)); CHECK(!ec); CHECK_THROWS_AS(fs::is_empty("foobar"), fs::filesystem_error); - bool result; + bool result = false; CHECK_NOTHROW(result = fs::is_empty("foobar", ec)); CHECK(!result); CHECK(ec);