summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-06-08 11:59:57 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-06-09 15:35:26 +0200
commitf09cb84b274edd2a27697a7dc803a7ee42946de2 (patch)
tree3d35f40f6c7a448cf8ed72e6efec179a07851098
parent24d22a76f9a0ad9ef5a45d1478002362ff50335f (diff)
-Werror,-Wunused-but-set-variable (Clang 13 trunk)
...ever since the code's introduction in c25ec0608a167bcf1d891043f02273761c351701 "initial import". Lets assume that the accompanying comment, also present since the "initial import", describes what was actually intended, and augment it with a "TODO". Change-Id: If94a3b72533459d02b1155653b5093c32f034e27 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116834 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--connectivity/source/drivers/odbc/OStatement.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/connectivity/source/drivers/odbc/OStatement.cxx b/connectivity/source/drivers/odbc/OStatement.cxx
index 3ec5bebce68c..c5d63ef771a8 100644
--- a/connectivity/source/drivers/odbc/OStatement.cxx
+++ b/connectivity/source/drivers/odbc/OStatement.cxx
@@ -319,7 +319,6 @@ sal_Bool SAL_CALL OStatement_Base::execute( const OUString& sql )
OString aSql(OUStringToOString(sql,getOwnConnection()->getTextEncoding()));
bool hasResultSet = false;
- SQLWarning aWarning;
// Reset the statement handle and warning
@@ -336,12 +335,10 @@ sal_Bool SAL_CALL OStatement_Base::execute( const OUString& sql )
try {
THROW_SQL(N3SQLExecDirect(m_aStatementHandle, reinterpret_cast<SDB_ODBC_CHAR *>(const_cast<char *>(aSql.getStr())), aSql.getLength()));
}
- catch (const SQLWarning& ex) {
+ catch (const SQLWarning&) {
- // Save pointer to warning and save with ResultSet
+ //TODO: Save pointer to warning and save with ResultSet
// object once it is created.
-
- aWarning = ex;
}
// Now determine if there is a result set associated with