summaryrefslogtreecommitdiff
path: root/mysqlc/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-16 18:11:24 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-16 18:11:24 +0100
commite16644fa1c042b56a1301f0476d7ddb71c8765ea (patch)
tree447c886c89f55e03e26a1652a9d98da6203111af /mysqlc/source
parent14ed889c45eccb16647b4fe679db2deda53ddca5 (diff)
external/mysqlcppconn: Silence -Wdynamic-exception-spec errors
...with Clang in C++17 mode Change-Id: If51c0788439688f6fbd77c1a05cb3295ac6e8cb4
Diffstat (limited to 'mysqlc/source')
-rw-r--r--mysqlc/source/mysqlc_general.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysqlc/source/mysqlc_general.hxx b/mysqlc/source/mysqlc_general.hxx
index 5d0b828c3e51..d3e12ee11c2c 100644
--- a/mysqlc/source/mysqlc_general.hxx
+++ b/mysqlc/source/mysqlc_general.hxx
@@ -29,7 +29,14 @@
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated"
#endif
+#if defined __clang__ && __cplusplus > 201402L
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdynamic-exception-spec"
+#endif
#include <cppconn/exception.h>
+#if defined __clang__ && __cplusplus > 201402L
+#pragma clang diagnostic pop
+#endif
#if defined __GNUC__
#pragma GCC diagnostic pop
#endif