summaryrefslogtreecommitdiff
path: root/mysqlc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-31 10:41:35 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-31 10:41:35 +0100
commitf6698138359e1f571aa6a464a40fb3bc85412d3a (patch)
tree85c979a7afb8ce8253783b6ab280015631adf394 /mysqlc
parentb48f97a2ec6ec5b53234594e70ccf24db347f976 (diff)
Silence GCC 7 warnings in cppconn/exception.h
Change-Id: Ia924473d3dba11babee23f4137c645b9f8d86a8b
Diffstat (limited to 'mysqlc')
-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 1f60a1938afb..5d0b828c3e51 100644
--- a/mysqlc/source/mysqlc_general.hxx
+++ b/mysqlc/source/mysqlc_general.hxx
@@ -25,7 +25,14 @@
#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/sdbc/SQLException.hpp>
+#if defined __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated"
+#endif
#include <cppconn/exception.h>
+#if defined __GNUC__
+#pragma GCC diagnostic pop
+#endif
namespace mysqlc_sdbc_driver
{