summaryrefslogtreecommitdiff
path: root/lib/c_glib
diff options
context:
space:
mode:
authorzeshuai007 <51382517@qq.com>2020-08-14 15:44:02 +0800
committerJens Geyer <jensg@apache.org>2021-04-29 08:57:43 +0200
commitc821d250976c690ebc45ae4f769d51951c0bfda4 (patch)
tree679d054e957506b890c17eb301a1d5a440487b30 /lib/c_glib
parent0f735583bb258ce8ec141eb2e9aad3ce51052322 (diff)
downloadthrift-c821d250976c690ebc45ae4f769d51951c0bfda4.tar.gz
THRIFT-5244 Dynamic exception specifications are deprecated in C++11[-Wdeprecated]
Client: cpp Patch: Zezeng Wang This closes #2217
Diffstat (limited to 'lib/c_glib')
-rw-r--r--lib/c_glib/test/testthrifttestclient.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/c_glib/test/testthrifttestclient.cpp b/lib/c_glib/test/testthrifttestclient.cpp
index 5732996ef..b8d93095a 100644
--- a/lib/c_glib/test/testthrifttestclient.cpp
+++ b/lib/c_glib/test/testthrifttestclient.cpp
@@ -291,7 +291,7 @@ class TestHandler : public ThriftTestIf {
}
void testException(const std::string &arg)
- throw(Xception, apache::thrift::TException) override
+ noexcept(false) override
{
cout << "[C -> C++] testException(" << arg << ")" << endl;
if (arg.compare("Xception") == 0) {
@@ -309,7 +309,7 @@ class TestHandler : public ThriftTestIf {
}
}
- void testMultiException(Xtruct &result, const std::string &arg0, const std::string &arg1) throw(Xception, Xception2) override {
+ void testMultiException(Xtruct &result, const std::string &arg0, const std::string &arg1) noexcept(false) override {
cout << "[C -> C++] testMultiException(" << arg0 << ", " << arg1 << ")" << endl;