forked from pool/libLASi
- Add GCC 11 build fix: * 0001-Fix-build-with-GCC-11.patch OBS-URL: https://build.opensuse.org/request/show/896607 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libLASi?expand=0&rev=19
28 lines
871 B
Diff
28 lines
871 B
Diff
From 75d1d700ecfb1627eb61722d4de31fbf4f97347e Mon Sep 17 00:00:00 2001
|
|
From: Christophe Giboudeaux <christophe@krop.fr>
|
|
Date: Tue, 1 Jun 2021 10:29:37 +0200
|
|
Subject: [PATCH] Fix build with GCC 11
|
|
|
|
Dynamic exception specification are deprecated in C++11 and were removed
|
|
in C++17.
|
|
---
|
|
src/util.h | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/util.h b/src/util.h
|
|
index 8e728de..6e6f8b3 100644
|
|
--- a/src/util.h
|
|
+++ b/src/util.h
|
|
@@ -27,7 +27,7 @@ std::ostream& operator<<(std::ostream&, const FT_Outline);
|
|
|
|
/** Converts a freetype return code into an exception.
|
|
*/
|
|
-inline void evalReturnCode(const int errCode, const char* funcName) throw (std::runtime_error) {
|
|
+inline void evalReturnCode(const int errCode, const char* funcName) {
|
|
if (errCode)
|
|
throw std::runtime_error(std::string("Error returned from ") + funcName);
|
|
}
|
|
--
|
|
2.31.1
|
|
|