summaryrefslogtreecommitdiff
path: root/dev-libs/fampp2/files/fampp2-7.0.1-fix-gcc6.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/fampp2/files/fampp2-7.0.1-fix-gcc6.patch')
-rw-r--r--dev-libs/fampp2/files/fampp2-7.0.1-fix-gcc6.patch67
1 files changed, 67 insertions, 0 deletions
diff --git a/dev-libs/fampp2/files/fampp2-7.0.1-fix-gcc6.patch b/dev-libs/fampp2/files/fampp2-7.0.1-fix-gcc6.patch
new file mode 100644
index 000000000000..659ecd51bf4c
--- /dev/null
+++ b/dev-libs/fampp2/files/fampp2-7.0.1-fix-gcc6.patch
@@ -0,0 +1,67 @@
+C++11 changed destructor semantics to be noexcept(true)
+by default, leading to potentially changed semantics.
+See also: https://bugs.gentoo.org/show_bug.cgi?id=595308
+
+--- a/src/Fampp2.cpp
++++ b/src/Fampp2.cpp
+@@ -105,6 +105,9 @@
+ // #include <unistd.h>
+
+ FamppRequest::~FamppRequest()
++#if __cplusplus >= 201103L
++ noexcept(false)
++#endif
+ {
+ // cerr << "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" << endl;
+ // cerr << "FamppRequest::~FamppRequest() this:" << (void*)this << endl;
+@@ -245,6 +248,9 @@
+
+
+ FamppImplMethods::~FamppImplMethods()
++#if __cplusplus >= 201103L
++ noexcept(false)
++#endif
+ {
+ if(0 != FAMClose( &theFAMConnection )) {
+ throw FamppCloseFailedException();
+--- a/src/Fampp2.hh
++++ b/src/Fampp2.hh
+@@ -168,7 +168,11 @@
+ public:
+
+
+- ~FamppRequest();
++ ~FamppRequest()
++#if __cplusplus >= 201103L
++ noexcept(false)
++#endif
++ ;
+
+
+ void suspend();
+@@ -216,7 +220,11 @@
+ protected:
+
+ FamppImplMethods();
+- virtual ~FamppImplMethods();
++ virtual ~FamppImplMethods()
++#if __cplusplus >= 201103L
++ noexcept(false)
++#endif
++ ;
+
+
+ public:
+@@ -251,7 +259,11 @@
+ public:
+ FamppSingletonClass();
+ FamppSingletonClass(const std::string appName);
+- ~FamppSingletonClass();
++ ~FamppSingletonClass()
++#if __cplusplus >= 201103L
++ noexcept(false)
++#endif
++ ;
+
+
+ void NextEvent();