forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-tv/me-tv: Fix building with GCC6 and -Werror=terminate (bug #61…
…3426) Package-Manager: Portage-2.3.5, Repoman-2.3.2 Closes: gentoo#4308
- Loading branch information
1 parent
7ad2c40
commit e9a14be
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
media-tv/me-tv/files/me-tv-1.4.0.10-C++11-throw-in-destructors.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- a/server/data.cc | ||
+++ b/server/data.cc | ||
@@ -68,7 +68,7 @@ | ||
} | ||
} | ||
|
||
-Statement::~Statement() | ||
+Statement::~Statement() NOEXCEPT | ||
{ | ||
if (sqlite3_finalize(statement) != 0) | ||
{ | ||
--- a/server/data.h | ||
+++ b/server/data.h | ||
@@ -26,6 +26,12 @@ | ||
#include <linux/dvb/frontend.h> | ||
#include <glibmm.h> | ||
|
||
+#if __cplusplus >= 201103L | ||
+#define NOEXCEPT noexcept(false) | ||
+#else | ||
+#define NOEXCEPT | ||
+#endif | ||
+ | ||
typedef std::list<Glib::ustring> StringList; | ||
|
||
namespace Data | ||
@@ -68,7 +74,7 @@ | ||
|
||
public: | ||
Statement(Connection& connection, const Glib::ustring& command); | ||
- ~Statement(); | ||
+ ~Statement() NOEXCEPT; | ||
|
||
void reset(); | ||
guint step(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters