diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-07-10 20:07:59 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-07-10 20:48:49 +0300 |
commit | 60a1254495bfd4895fb46b671e562262fb7358ee (patch) | |
tree | eab477deba0b7e67c4503377e7aa4464df072e17 /connectivity | |
parent | 911a229cc6c6671b833592248b1d6cac75588ae7 (diff) |
WaE: unused functions
Change-Id: Ie54546ef97fe102de09888ce9c7eefe6c879aae4
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/parse/sqlbison.y | 5 | ||||
-rw-r--r-- | connectivity/source/parse/sqlflex.l | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/connectivity/source/parse/sqlbison.y b/connectivity/source/parse/sqlbison.y index b7fac323b282..a3703b77ec41 100644 --- a/connectivity/source/parse/sqlbison.y +++ b/connectivity/source/parse/sqlbison.y @@ -55,6 +55,11 @@ static const ::rtl::OUString aEmptyString; +#if HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY +# pragma GCC diagnostic ignored "-Wwrite-strings" +# pragma GCC diagnostic ignored "-Wunused-function" +#endif + static connectivity::OSQLInternalNode* newNode(const sal_Char* pNewValue, const connectivity::SQLNodeType eNodeType, const sal_uInt32 nNodeID = 0) diff --git a/connectivity/source/parse/sqlflex.l b/connectivity/source/parse/sqlflex.l index a626e9445bdd..47a42ec3ea87 100644 --- a/connectivity/source/parse/sqlflex.l +++ b/connectivity/source/parse/sqlflex.l @@ -46,10 +46,7 @@ #include <rtl/strbuf.hxx> #include <connectivity/sqlparse.hxx> -#if HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY -# pragma GCC diagnostic ignored "-Wwrite-strings" -# pragma GCC diagnostic ignored "-Wunused-function" -#elif defined __SUNPRO_CC +#if defined __SUNPRO_CC #pragma disable_warn #elif defined _MSC_VER #pragma warning(push, 1) |