summaryrefslogtreecommitdiff
path: root/dev-libs/fampp2/files/fampp2-7.0.1-fix-gcc6.patch
blob: 659ecd51bf4cd0a775d5946aacdee7bcdbef8876 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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();