diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-09 10:38:28 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-09 11:21:12 +0000 |
commit | 9a30cb2161506e003f14592d83075ab9d30516c1 (patch) | |
tree | 51f98a22475b12b68cb1d92392780a007802a57f | |
parent | 1f8ee857dcd5f6591d060746c805fdcc036a112b (diff) |
hack to silence -Wunused-function
Change-Id: I585839c05ca3b0336ffbe2c60a2f58c34b0aae78
-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); \ } %} |