diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-01-13 20:57:08 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-01-13 21:16:10 +0100 |
commit | 398491236015721e067273657ad3016634b5a166 (patch) | |
tree | 5d5686932719f5db35dc7944f60d60b3cea301ed /connectivity | |
parent | 0b5a5210b1ca5448e51995ae934d6eeebad00f1a (diff) |
connectivity: suppress MSVC 2013 --enable-lto warning C4702
Change-Id: I55b27c655de221c10bac6f868a59b0dbd6cd8d32
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/sdbcx/VCollection.cxx | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx index 34ed9b8f0152..f1450a6cc762 100644 --- a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx +++ b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx @@ -181,8 +181,10 @@ sal_Int32 SAL_CALL ODatabaseMetaDataResultSet::findColumn( const OUString& colum } ::dbtools::throwInvalidColumnException( columnName, *this ); +#if !(defined(_MSC_VER) && defined(ENABLE_LTO)) assert(false); return 0; // Never reached +#endif } void ODatabaseMetaDataResultSet::checkIndex(sal_Int32 columnIndex ) throw(::com::sun::star::sdbc::SQLException) diff --git a/connectivity/source/sdbcx/VCollection.cxx b/connectivity/source/sdbcx/VCollection.cxx index a6000c5bc492..f2be688a0963 100644 --- a/connectivity/source/sdbcx/VCollection.cxx +++ b/connectivity/source/sdbcx/VCollection.cxx @@ -432,7 +432,9 @@ sal_Int32 SAL_CALL OCollection::findColumn( const OUString& columnName ) throw(S if ( !m_pElements->exists(columnName) ) { ::dbtools::throwInvalidColumnException( columnName, static_cast< XIndexAccess*>(this) ); +#if !(defined(_MSC_VER) && defined(ENABLE_LTO)) assert(false); +#endif } return m_pElements->findColumn(columnName) + 1; // because columns start at one |