diff options
-rw-r--r-- | connectivity/Library_dbtools.mk | 2 | ||||
-rw-r--r-- | connectivity/source/parse/sqlflex.l | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/Library_dbtools.mk b/connectivity/Library_dbtools.mk index 57127b74e80c..8fc596bd30d3 100644 --- a/connectivity/Library_dbtools.mk +++ b/connectivity/Library_dbtools.mk @@ -67,8 +67,6 @@ connectivity/source/parse/sqlflex \ $(call gb_LexTarget_get_scanner_target,connectivity/source/parse/sqlflex) : T_LEXFLAGS := -i -8 -PSQLyy -L - - $(eval $(call gb_Library_add_exception_objects,dbtools,\ connectivity/source/commontools/AutoRetrievingBase \ connectivity/source/commontools/BlobHelper \ diff --git a/connectivity/source/parse/sqlflex.l b/connectivity/source/parse/sqlflex.l index 84edfd9b928e..5e80f2ad8daa 100644 --- a/connectivity/source/parse/sqlflex.l +++ b/connectivity/source/parse/sqlflex.l @@ -87,6 +87,8 @@ OSQLScanner* xxx_pGLOBAL_SQLSCAN = nullptr; #define YY_FATAL_ERROR(msg) \ { \ xxx_pGLOBAL_SQLSCAN->SQLyyerror(msg); \ + /*hack to silence -Wunused-function*/ \ + if (0) yy_fatal_error(msg); \ } %} |