From 8e861728a0512c08ef9907ab708d02309736a796 Mon Sep 17 00:00:00 2001 From: grzadr Date: Thu, 22 Feb 2018 09:46:54 +0100 Subject: [PATCH 1/2] Fix indentation in line 2916 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Compiling with -Wmisleading-indentation triggers warning: /data/Git/spdlog/tests/catch.hpp: In member function ‘bool Catch::TestSpec::Filter::matches(const Catch::TestCaseInfo&) const’: /data/Git/spdlog/tests/catch.hpp:2913:17: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] for( std::vector >::const_iterator it = m_patterns.begin(), itEnd = m_patterns.end(); it != itEnd; ++it ) ^~~ /data/Git/spdlog/tests/catch.hpp:2916:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ return true; ^~~~~~ --- tests/catch.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/catch.hpp b/tests/catch.hpp index 925c6bff..5585d1e3 100644 --- a/tests/catch.hpp +++ b/tests/catch.hpp @@ -2913,7 +2913,7 @@ namespace Catch { for( std::vector >::const_iterator it = m_patterns.begin(), itEnd = m_patterns.end(); it != itEnd; ++it ) if( !(*it)->matches( testCase ) ) return false; - return true; + return true; } }; From 851b49e147eef768680d53e358bb0661b6b363f0 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Thu, 22 Feb 2018 13:37:50 +0200 Subject: [PATCH 2/2] Update CMakeLists.txt --- tests/CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index ef41e993..9ec232c8 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,5 +1,4 @@ project(spdlog-utests CXX) - enable_testing() find_package(Threads REQUIRED)