diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-09-13 14:55:10 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-09-13 14:56:32 +0200 |
commit | 04e92a626ee01340bc8308566753719274b99edf (patch) | |
tree | 1c3d73a17225b982ddb6dadea927ba29f86194e8 /connectivity/source | |
parent | 3ca5b83368a82f0798f3e1122264d9788ac7300e (diff) |
fix Apple g++ 4.2.1 unused function warning in sqlbison.y
Change-Id: Icc55a6b485341e3be0d3e96f51f41a2bba1629c1
Diffstat (limited to 'connectivity/source')
-rw-r--r-- | connectivity/source/parse/sqlbison.y | 49 |
1 files changed, 31 insertions, 18 deletions
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 //============================================================ |