summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconnectivity/source/parse/sqlflex.l6
1 files changed, 5 insertions, 1 deletions
diff --git a/connectivity/source/parse/sqlflex.l b/connectivity/source/parse/sqlflex.l
index 879e8167ae6c..fd5eb0f8b5d8 100755
--- a/connectivity/source/parse/sqlflex.l
+++ b/connectivity/source/parse/sqlflex.l
@@ -53,7 +53,11 @@
#include <rtl/strbuf.hxx>
#include <connectivity/sqlparse.hxx>
-#if defined __SUNPRO_CC
+#if defined __GNUC__
+#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
+# pragma GCC diagnostic ignored "-Wwrite-strings"
+#endif
+#elif defined __SUNPRO_CC
#pragma disable_warn
#elif defined _MSC_VER
#pragma warning(push, 1)