aboutsummaryrefslogtreecommitdiffstats
path: root/main/cppunit/fix-Werror-deprecated-copy.patch
diff options
context:
space:
mode:
authorMike Sullivan <mksully22@gmail.com>2019-09-23 13:58:13 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-09-25 12:58:59 +0000
commit9c091ce2217a5aa2194f170e1116b6344df4a7d8 (patch)
treed40496e5e25b1c66cf78a2fc0d56f4a3f1cbb7b7 /main/cppunit/fix-Werror-deprecated-copy.patch
parente47299502080c0b2c42b2cc10c60b064624c4330 (diff)
downloadaports-9c091ce2217a5aa2194f170e1116b6344df4a7d8.tar.bz2
aports-9c091ce2217a5aa2194f170e1116b6344df4a7d8.tar.xz
main/cppunit: with gcc 9.2 fix deprecated copy Werror
Diffstat (limited to 'main/cppunit/fix-Werror-deprecated-copy.patch')
-rw-r--r--main/cppunit/fix-Werror-deprecated-copy.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/main/cppunit/fix-Werror-deprecated-copy.patch b/main/cppunit/fix-Werror-deprecated-copy.patch
new file mode 100644
index 0000000000..6866e93aeb
--- /dev/null
+++ b/main/cppunit/fix-Werror-deprecated-copy.patch
@@ -0,0 +1,30 @@
+diff --git a/examples/cppunittest/OrthodoxTest.h b/examples/cppunittest/OrthodoxTest.h
+index 8fc2a08..a2bc678 100644
+--- a/examples/cppunittest/OrthodoxTest.h
++++ b/examples/cppunittest/OrthodoxTest.h
+@@ -38,6 +38,8 @@ private:
+ public:
+ Value( int value =0 ) : m_value( value ) {}
+
++ Value( const Value & ) = default;
++
+ Value& operator= ( const Value& v )
+ {
+ m_value = v.m_value;
+@@ -143,6 +145,8 @@ private:
+ {
+ return ValueBadCall( -1 - m_value );
+ }
++
++ ValueBadCall &operator =( const ValueBadCall & ) = default;
+ };
+
+
+@@ -161,6 +165,8 @@ private:
+ ++m_value;
+ return *this;
+ }
++
++ ValueBadAssignment( const ValueBadAssignment & ) = default;
+ };
+