From 04e92a626ee01340bc8308566753719274b99edf Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 13 Sep 2013 14:55:10 +0200 Subject: fix Apple g++ 4.2.1 unused function warning in sqlbison.y Change-Id: Icc55a6b485341e3be0d3e96f51f41a2bba1629c1 --- connectivity/source/parse/sqlbison.y | 49 +++++++++++++++++++++++------------- 1 file changed, 31 insertions(+), 18 deletions(-) (limited to 'connectivity/source') diff --git a/connectivity/source/parse/sqlbison.y b/connectivity/source/parse/sqlbison.y index ec236de75d1f..ae793e821d1d 100644 --- a/connectivity/source/parse/sqlbison.y +++ b/connectivity/source/parse/sqlbison.y @@ -58,26 +58,17 @@ # pragma GCC diagnostic ignored "-Wunused-function" #endif -static connectivity::OSQLInternalNode* newNode(const sal_Char* pNewValue, - const connectivity::SQLNodeType eNodeType, - const sal_uInt32 nNodeID = 0) -{ - return new connectivity::OSQLInternalNode(pNewValue, eNodeType, nNodeID); -} +inline connectivity::OSQLInternalNode* newNode(const sal_Char* pNewValue, + const connectivity::SQLNodeType eNodeType, + const sal_uInt32 nNodeID = 0); -static connectivity::OSQLInternalNode* newNode(const ::rtl::OString& _NewValue, - const connectivity::SQLNodeType eNodeType, - const sal_uInt32 nNodeID = 0) -{ - return new connectivity::OSQLInternalNode(_NewValue, eNodeType, nNodeID); -} +inline connectivity::OSQLInternalNode* newNode(const ::rtl::OString& _NewValue, + const connectivity::SQLNodeType eNodeType, + const sal_uInt32 nNodeID = 0); -static connectivity::OSQLInternalNode* newNode(const ::rtl::OUString& _NewValue, - const connectivity::SQLNodeType eNodeType, - const sal_uInt32 nNodeID = 0) -{ - return new connectivity::OSQLInternalNode(_NewValue, eNodeType, nNodeID); -} +inline connectivity::OSQLInternalNode* newNode(const ::rtl::OUString& _NewValue, + const connectivity::SQLNodeType eNodeType, + const sal_uInt32 nNodeID = 0); // yyi ist die interne Nr. der Regel, die gerade reduziert wird. @@ -4280,6 +4271,28 @@ using namespace ::com::sun::star::util; using namespace ::osl; using namespace ::dbtools; +connectivity::OSQLInternalNode* newNode(const sal_Char* pNewValue, + const connectivity::SQLNodeType eNodeType, + const sal_uInt32 nNodeID) +{ + return new connectivity::OSQLInternalNode(pNewValue, eNodeType, nNodeID); +} + +connectivity::OSQLInternalNode* newNode(const ::rtl::OString& _NewValue, + const connectivity::SQLNodeType eNodeType, + const sal_uInt32 nNodeID) +{ + return new connectivity::OSQLInternalNode(_NewValue, eNodeType, nNodeID); +} + +connectivity::OSQLInternalNode* newNode(const ::rtl::OUString& _NewValue, + const connectivity::SQLNodeType eNodeType, + const sal_uInt32 nNodeID) +{ + return new connectivity::OSQLInternalNode(_NewValue, eNodeType, nNodeID); +} + + //============================================================ //= a helper for static ascii pseudo-unicode strings //============================================================ -- cgit