aboutsummaryrefslogtreecommitdiff
blob: cc921060b3031a87214bf8c4745a153a33742074 (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
Fix building with C++14, which errors out due changed noexcept()
semantics for dtors caught by -Werror=terminate.

See also: https://bugs.gentoo.org/show_bug.cgi?id=595422

--- a/src/nat.cpp
+++ b/src/nat.cpp
@@ -145,11 +145,11 @@
     "nat lookup successful",
     "nat address not in table",
     "nat not supported/implemented",
-    "unable to open device "NAT_DEVICE,
+    "unable to open device " NAT_DEVICE,
     "unable to get socket name",
     "unable to get peer name",
     "unable to get socket type",
-    "unable to lookup, nat "NAT_SYSCALL" failed",
+    "unable to lookup, nat " NAT_SYSCALL " failed",
     "unkown nat error code"
 };
 
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -2971,12 +2971,7 @@
 
 TCPStream::~TCPStream()
 {
-#ifdef  CCXX_EXCEPTIONS
-        try { endStream(); }
-        catch( ... ) { if ( ! std::uncaught_exception()) throw;};
-#else
-        endStream();
-#endif
+    endStream();
 }
 
 #ifdef  HAVE_GETADDRINFO
--- a/src/ssl.cpp
+++ b/src/ssl.cpp
@@ -441,12 +441,7 @@
 
 SSLStream::~SSLStream()
 {
-#ifdef  CCXX_EXCEPTIONS
-    try { endStream(); }
-    catch( ...) { if ( ! std::uncaught_exception()) throw;};
-#else
     endStream();
-#endif
 }
 
 #ifdef  CCXX_NAMESPACES