summaryrefslogtreecommitdiff
path: root/games-strategy/asc/files/asc-2.6.0.0-gcc6-nothrow-in-dtors.patch
diff options
context:
space:
mode:
Diffstat (limited to 'games-strategy/asc/files/asc-2.6.0.0-gcc6-nothrow-in-dtors.patch')
-rw-r--r--games-strategy/asc/files/asc-2.6.0.0-gcc6-nothrow-in-dtors.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/games-strategy/asc/files/asc-2.6.0.0-gcc6-nothrow-in-dtors.patch b/games-strategy/asc/files/asc-2.6.0.0-gcc6-nothrow-in-dtors.patch
new file mode 100644
index 000000000000..e710b22f8c8b
--- /dev/null
+++ b/games-strategy/asc/files/asc-2.6.0.0-gcc6-nothrow-in-dtors.patch
@@ -0,0 +1,32 @@
+Bug: https://bugs.gentoo.org/612934
+Upstream Bug: https://sourceforge.net/p/asc-hq/patches/2/
+
+--- a/source/basestrm.cpp
++++ b/source/basestrm.cpp
+@@ -1728,7 +1728,6 @@
+ }
+ } catch ( ... ) {
+ displayLogMessage( 9, ASCString("~tn_c_lzw_filestream : caught exception") );
+- throw;
+ }
+ }
+
+--- a/source/simplestream.cpp
++++ b/source/simplestream.cpp
+@@ -43,6 +43,7 @@
+ #endif
+ #endif
+
++#include "util/messaginghub.h"
+
+ tnbufstream::tnbufstream ( )
+ {
+@@ -270,7 +271,7 @@
+
+ int res = fclose( fp );
+ if ( res != 0 )
+- throw tfileerror ( getDeviceName() + " : " + strerror(errno));
++ displayLogMessage( 9, ASCString( getDeviceName() + " : " + strerror(errno) ) );
+
+ _mode = uninitialized;
+