[Libreoffice-commits] core.git: mysqlc/source

Stephan Bergmann sbergman at redhat.com
Tue Jan 31 09:42:14 UTC 2017


 mysqlc/source/mysqlc_general.hxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit f6698138359e1f571aa6a464a40fb3bc85412d3a
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jan 31 10:41:35 2017 +0100

    Silence GCC 7 warnings in cppconn/exception.h
    
    Change-Id: Ia924473d3dba11babee23f4137c645b9f8d86a8b

diff --git a/mysqlc/source/mysqlc_general.hxx b/mysqlc/source/mysqlc_general.hxx
index 1f60a19..5d0b828 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
 {


More information about the Libreoffice-commits mailing list