forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
audacious-3.7.1-c++11-throw-in-dtors.patch
39 lines (33 loc) · 1.19 KB
/
audacious-3.7.1-c++11-throw-in-dtors.patch
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
Bug: https://bugs.gentoo.org/600882
Upstream commit: https://github.com/audacious-media-player/audacious/commit/1cf1a81a16cc70b2d9c78994ad98e26db99943ed
From 1cf1a81a16cc70b2d9c78994ad98e26db99943ed Mon Sep 17 00:00:00 2001
From: John Lindgren <[email protected]>
Date: Sun, 8 May 2016 22:39:00 -0400
Subject: [PATCH] Fix compiler warning.
---
src/libaudcore/objects.h | 2 +-
src/libaudcore/stringbuf.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libaudcore/objects.h b/src/libaudcore/objects.h
index fd57f5e15..4b98cc624 100644
--- a/src/libaudcore/objects.h
+++ b/src/libaudcore/objects.h
@@ -250,7 +250,7 @@ class StringBuf
}
// only allowed for top (or null) string
- ~StringBuf ();
+ ~StringBuf () noexcept (false);
// only allowed for top (or null) string
void resize (int size);
diff --git a/src/libaudcore/stringbuf.cc b/src/libaudcore/stringbuf.cc
index 041b1e9de..fc646f6ab 100644
--- a/src/libaudcore/stringbuf.cc
+++ b/src/libaudcore/stringbuf.cc
@@ -139,7 +139,7 @@ EXPORT void StringBuf::resize (int len)
}
}
-EXPORT StringBuf::~StringBuf ()
+EXPORT StringBuf::~StringBuf () noexcept (false)
{
if (m_data)
{