diff options
author | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-07-17 07:35:53 +0200 |
---|---|---|
committer | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-07-17 07:38:14 +0200 |
commit | 30905e486b4c0b40b893a4c0a31e7e6daee28ffc (patch) | |
tree | 9fb830b4fec65d54180197a55d8131374514f8fd /connectivity/source | |
parent | ec32bf0b19cbebc43ea2e8e25efc7ae42dfafd6b (diff) |
Fix clang warnings in firebird-sdbc.
Change-Id: I89c0f22e8db166537f1d6b9313f94c9c3631f195
Diffstat (limited to 'connectivity/source')
-rw-r--r-- | connectivity/source/drivers/firebird/FResultSetMetaData.cxx | 1 | ||||
-rw-r--r-- | connectivity/source/drivers/firebird/FServices.cxx | 12 | ||||
-rw-r--r-- | connectivity/source/drivers/firebird/FStatement.cxx | 2 |
3 files changed, 9 insertions, 6 deletions
diff --git a/connectivity/source/drivers/firebird/FResultSetMetaData.cxx b/connectivity/source/drivers/firebird/FResultSetMetaData.cxx index f756bc099638..d8f05392c856 100644 --- a/connectivity/source/drivers/firebird/FResultSetMetaData.cxx +++ b/connectivity/source/drivers/firebird/FResultSetMetaData.cxx @@ -44,6 +44,7 @@ using namespace com::sun::star::sdbc; // ------------------------------------------------------------------------- OResultSetMetaData::~OResultSetMetaData() { + (void) m_pConnection; // To remove warning until the rest of the class is implemented.. } // ------------------------------------------------------------------------- // ------------------------------------------------------------------------- diff --git a/connectivity/source/drivers/firebird/FServices.cxx b/connectivity/source/drivers/firebird/FServices.cxx index 9bda80f9c70a..381b6ead579d 100644 --- a/connectivity/source/drivers/firebird/FServices.cxx +++ b/connectivity/source/drivers/firebird/FServices.cxx @@ -104,12 +104,14 @@ struct ProviderRequest ) { if (!xRet.is() && (Implname == sImplementationName)) - try - { - xRet = creator( xServiceManager, sImplementationName,Factory, Services,0); - } - catch(...) { + try + { + xRet = creator( xServiceManager, sImplementationName,Factory, Services,0); + } + catch(...) + { + } } return xRet.is(); } diff --git a/connectivity/source/drivers/firebird/FStatement.cxx b/connectivity/source/drivers/firebird/FStatement.cxx index 7823380f0ee2..2646330bb7e8 100644 --- a/connectivity/source/drivers/firebird/FStatement.cxx +++ b/connectivity/source/drivers/firebird/FStatement.cxx @@ -71,7 +71,7 @@ static int pr_error (const ISC_STATUS* status, const char* operation) isc_print_status(status); - printf("SQLCODE:%d\n", isc_sqlcode(status)); +// printf("SQLCODE:%d\n", isc_sqlcode(status)); Causes warning on some platforms printf("]\n"); |