summaryrefslogtreecommitdiff
blob: 91d90961cb4ad67b88eea5a2ff3653876234227f (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
68
69
70
71
72
73
Bug: https://bugs.gentoo.org/602436
Upstream PR: https://github.com/GNOME/nemiver/pull/3

--- a/src/common/nmv-api-macros.h
+++ b/src/common/nmv-api-macros.h
@@ -52,5 +52,12 @@
 #  define NEMIVER_PURE_IFACE
 #  define NEMIVER_API
 # endif //HAS_GCC_VISIBILITY_SUPPORT
+
+# if __cplusplus >= 201103L
+#  define DTOR_NOEXCEPT noexcept(false)
+# else
+#  define DTOR_NOEXCEPT
+# endif //__cplusplus >= 201103L
+
 #endif
 
--- a/src/common/nmv-log-stream.cc
+++ b/src/common/nmv-log-stream.cc
@@ -393,7 +393,7 @@
     }
 }
 
-LogStream::~LogStream ()
+LogStream::~LogStream () DTOR_NOEXCEPT
 {
     LOG_D ("delete", "destructor-domain");
     if (!m_priv) throw runtime_error ("double free in LogStrea::~LogStream");
--- a/src/common/nmv-log-stream.h
+++ b/src/common/nmv-log-stream.h
@@ -151,7 +151,7 @@
                const string &a_default_domain=NMV_GENERAL_DOMAIN);
 
     /// \brief destructor of the log stream class
-    virtual ~LogStream ();
+    virtual ~LogStream () DTOR_NOEXCEPT;
 
     /// \brief enable or disable logging for a domain
     /// \param a_domain the domain to enable logging for
--- a/src/common/nmv-object.cc
+++ b/src/common/nmv-object.cc
@@ -68,7 +68,7 @@
     return *this;
 }
 
-Object::~Object ()
+Object::~Object () DTOR_NOEXCEPT
 {
 }
 
--- a/src/common/nmv-object.h
+++ b/src/common/nmv-object.h
@@ -54,7 +54,7 @@
 
     Object& operator= (Object const&);
 
-    virtual ~Object ();
+    virtual ~Object () DTOR_NOEXCEPT;
 
     void ref ();
 
--- a/src/common/nmv-transaction.h
+++ b/src/common/nmv-transaction.h
@@ -116,7 +116,7 @@
         return m_trans;
     }
 
-    ~TransactionAutoHelper ()
+    ~TransactionAutoHelper () DTOR_NOEXCEPT
     {
         if (m_ignore) {
             return;