svn commit: r494599 - head/devel/catch/files
Pietro Cerutti
gahr at FreeBSD.org
Mon Mar 4 15:06:04 UTC 2019
Author: gahr
Date: Mon Mar 4 15:06:02 2019
New Revision: 494599
URL: https://svnweb.freebsd.org/changeset/ports/494599
Log:
devel/catch: fix build with clang 8
PR: 236212
Submitted by: jbeich
Obtained from: https://github.com/catchorg/Catch2/pull/1537
Added:
head/devel/catch/files/
head/devel/catch/files/patch-bug236212 (contents, props changed)
Added: head/devel/catch/files/patch-bug236212
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/catch/files/patch-bug236212 Mon Mar 4 15:06:02 2019 (r494599)
@@ -0,0 +1,31 @@
+From e8bfd882e8e8738d884933ad75eb25e8a50989b8 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem at gmail.com>
+Date: Tue, 12 Feb 2019 12:57:00 -0800
+Subject: [PATCH] Fix -Wdefaulted-function-deleted warning
+
+Clang8 warns
+
+catch_interfaces_reporter.h:84:25: error: explicitly defaulted move assignment operator is implicitly deleted [-Werror,-Wdefaulted-function-deleted]
+| AssertionStats& operator = ( AssertionStats && ) = default;
+| ^
+
+Signed-off-by: Khem Raj <raj.khem at gmail.com>
+---
+ include/internal/catch_interfaces_reporter.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/include/internal/catch_interfaces_reporter.h b/include/internal/catch_interfaces_reporter.h
+index 9d99c9814..e5fbf8bb0 100644
+--- include/internal/catch_interfaces_reporter.h.orig
++++ include/internal/catch_interfaces_reporter.h
+@@ -80,8 +80,8 @@ namespace Catch {
+
+ AssertionStats( AssertionStats const& ) = default;
+ AssertionStats( AssertionStats && ) = default;
+- AssertionStats& operator = ( AssertionStats const& ) = default;
+- AssertionStats& operator = ( AssertionStats && ) = default;
++ AssertionStats& operator = ( AssertionStats const& ) = delete;
++ AssertionStats& operator = ( AssertionStats && ) = delete;
+ virtual ~AssertionStats();
+
+ AssertionResult assertionResult;
More information about the svn-ports-all
mailing list