From e21d0b29cc190d6d314764f3f4c484db79eece0e Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Mon, 19 May 2014 19:04:38 +0100 Subject: [PATCH] Killed a couple more warnings (one for VS2010 and one for Clang) --- include/reporters/catch_reporter_bases.hpp | 3 ++- projects/XCode/CatchSelfTest/CatchSelfTest/catch_text.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/reporters/catch_reporter_bases.hpp b/include/reporters/catch_reporter_bases.hpp index f41bf6ac..ddbc63b7 100644 --- a/include/reporters/catch_reporter_bases.hpp +++ b/include/reporters/catch_reporter_bases.hpp @@ -95,11 +95,12 @@ namespace Catch { struct BySectionInfo { BySectionInfo( SectionInfo const& other ) : m_other( other ) {} + BySectionInfo( BySectionInfo const& other ) : m_other( other.m_other ) {} bool operator() ( Ptr const& node ) const { return node->stats.sectionInfo.lineInfo == m_other.lineInfo; } private: - + void operator=( BySectionInfo const& ); SectionInfo const& m_other; }; diff --git a/projects/XCode/CatchSelfTest/CatchSelfTest/catch_text.cpp b/projects/XCode/CatchSelfTest/CatchSelfTest/catch_text.cpp index 502a0d05..a08e67b3 100644 --- a/projects/XCode/CatchSelfTest/CatchSelfTest/catch_text.cpp +++ b/projects/XCode/CatchSelfTest/CatchSelfTest/catch_text.cpp @@ -1,2 +1,3 @@ // This file is only here to verify (to the extent possible) the self sufficiency of the header +#include "catch_suppress_warnings.h" #include "catch_text.h"