r23555 by jghali - Fix warning related to C++11 deprecation of dynamic exceptions specifications in pgf library
scribus-commit
scribus-commit at lists.scribus.net
Sat Apr 4 15:49:38 UTC 2020
Author: jghali
Date: Sat Apr 4 15:49:38 2020
New Revision: 23555
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23555
Log:
Fix warning related to C++11 deprecation of dynamic exceptions specifications in pgf library
Modified:
trunk/Scribus/scribus/third_party/pgf/PGFplatform.h
Modified: trunk/Scribus/scribus/third_party/pgf/PGFplatform.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23555&path=/trunk/Scribus/scribus/third_party/pgf/PGFplatform.h
==============================================================================
--- trunk/Scribus/scribus/third_party/pgf/PGFplatform.h (original)
+++ trunk/Scribus/scribus/third_party/pgf/PGFplatform.h Sat Apr 4 15:49:38 2020
@@ -480,7 +480,12 @@
#define ReturnWithError2(err, ret) throw IOException(err)
#endif //NEXCEPTIONS
+// Dynamic exceptions specifications are deprecated in C++11
+#if __cplusplus < 201103L
#define THROW_ throw(IOException)
+#else
+#define THROW_
+#endif
#define CONST const
//-------------------------------------------------------------------------------
More information about the scribus-commit
mailing list