summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-09 10:38:28 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-09 11:21:12 +0000
commit9a30cb2161506e003f14592d83075ab9d30516c1 (patch)
tree51f98a22475b12b68cb1d92392780a007802a57f /connectivity
parent1f8ee857dcd5f6591d060746c805fdcc036a112b (diff)
hack to silence -Wunused-function
Change-Id: I585839c05ca3b0336ffbe2c60a2f58c34b0aae78
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/Library_dbtools.mk2
-rw-r--r--connectivity/source/parse/sqlflex.l2
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); \
}
%}