diff options
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/source/uno/lbenv.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cppu/source/uno/lbenv.cxx b/cppu/source/uno/lbenv.cxx index 377b20b8531e..ef37aee9619e 100644 --- a/cppu/source/uno/lbenv.cxx +++ b/cppu/source/uno/lbenv.cxx @@ -190,6 +190,10 @@ inline void ObjectEntry::append( ::std::pair< Ptr2ObjectMap::iterator, bool > insertion( pEnv->aPtr2ObjectMap.insert( Ptr2ObjectMap::value_type( pInterface, this ) ) ); + // No idea if the code above has side-effects and can't be just + // bypassed in the no-OSL_ASSERT case, so avoid "unused variable" like this instead. + (void) insertion; + OSL_ASSERT( insertion.second || (find( pInterface, 0 ) >= 0 && // points to the same object entry: |