summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2013-07-17 07:35:53 +0200
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2013-07-17 07:38:14 +0200
commit30905e486b4c0b40b893a4c0a31e7e6daee28ffc (patch)
tree9fb830b4fec65d54180197a55d8131374514f8fd
parentec32bf0b19cbebc43ea2e8e25efc7ae42dfafd6b (diff)
Fix clang warnings in firebird-sdbc.
Change-Id: I89c0f22e8db166537f1d6b9313f94c9c3631f195
-rw-r--r--connectivity/source/drivers/firebird/FResultSetMetaData.cxx1
-rw-r--r--connectivity/source/drivers/firebird/FServices.cxx12
-rw-r--r--connectivity/source/drivers/firebird/FStatement.cxx2
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");