diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-05-10 14:49:37 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-05-10 14:57:26 +0200 |
commit | 0f3ac23d732239b50207cfbb8cf810ef41fa9835 (patch) | |
tree | a338a71c043dfa71e9de3c6cdc5b239b5f4b04a3 /connectivity/source | |
parent | 356cef643585469d17232543e4cb98ee4f3c225b (diff) |
Insert explicit "break" when falling through to empty next case
...which itself only contains a "break" (or nothing at all at the end of the
"switch"), as otherwise Clang -Wimplicit-fallthrough would warn about these.
Change-Id: I25c1cf2ca74dfeba7ca0385ca8f1c1bf30bbf91b
Diffstat (limited to 'connectivity/source')
-rw-r--r-- | connectivity/source/drivers/jdbc/ResultSet.cxx | 3 | ||||
-rw-r--r-- | connectivity/source/drivers/odbc/OTools.cxx | 1 | ||||
-rw-r--r-- | connectivity/source/parse/sqlnode.cxx | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/connectivity/source/drivers/jdbc/ResultSet.cxx b/connectivity/source/drivers/jdbc/ResultSet.cxx index d872258c82b2..3cef4b7b270e 100644 --- a/connectivity/source/drivers/jdbc/ResultSet.cxx +++ b/connectivity/source/drivers/jdbc/ResultSet.cxx @@ -917,8 +917,9 @@ sal_Bool java_sql_ResultSet::convertFastPropertyValue( break; case PROPERTY_ID_FETCHSIZE: bRet = ::comphelper::tryPropertyValue(rConvertedValue, rOldValue, rValue, getFetchSize()); + break; default: - ; + break; } return bRet; } diff --git a/connectivity/source/drivers/odbc/OTools.cxx b/connectivity/source/drivers/odbc/OTools.cxx index 4b937859e2fb..71109fb06884 100644 --- a/connectivity/source/drivers/odbc/OTools.cxx +++ b/connectivity/source/drivers/odbc/OTools.cxx @@ -319,6 +319,7 @@ void OTools::ThrowException(const OConnection* _pConnection, case SQL_NO_DATA_FOUND: if(_bNoFound) return; // no need to throw a exception + break; case SQL_ERROR: break; diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx index 61d4b5fa5ef0..bc20db4d1c8d 100644 --- a/connectivity/source/parse/sqlnode.cxx +++ b/connectivity/source/parse/sqlnode.cxx @@ -826,6 +826,7 @@ OSQLParseNode* OSQLParser::convertNode(sal_Int32 nType, OSQLParseNode* pLiteral) case DataType::CLOB: if ( !SQL_ISRULE(pReturn,char_value_exp) && !buildStringNodes(pReturn) ) pReturn = nullptr; + break; default: break; } |