summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-02 22:29:38 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-02 22:29:38 +0200
commit30e081a40a8cea542a132f0e0f104dba88809047 (patch)
tree7fd318afa8d631e7e1f97648943b98829cd7dd66 /stoc
parentdf45d21334e931db03ad9ceb2574a03c4b8ca3e3 (diff)
loplugin:casttovoid: stoc
Change-Id: I7e11f40d71b83e39154a5036e2d2241dc29674e4
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/proxy_factory/proxyfac.cxx1
-rw-r--r--stoc/source/security/lru_cache.h3
2 files changed, 0 insertions, 4 deletions
diff --git a/stoc/source/proxy_factory/proxyfac.cxx b/stoc/source/proxy_factory/proxyfac.cxx
index ea3c7479c21d..ed33ea63f642 100644
--- a/stoc/source/proxy_factory/proxyfac.cxx
+++ b/stoc/source/proxy_factory/proxyfac.cxx
@@ -194,7 +194,6 @@ extern "C"
static void SAL_CALL binuno_proxy_free(
uno_ExtEnvironment * pEnv, void * pProxy )
{
- (void) pEnv; // avoid warning about unused parameter
binuno_Proxy * proxy = static_cast< binuno_Proxy * >(
static_cast< uno_Interface * >( pProxy ) );
OSL_ASSERT( proxy->m_root->m_factory->m_uno_env.get()->pExtEnv == pEnv );
diff --git a/stoc/source/security/lru_cache.h b/stoc/source/security/lru_cache.h
index 5af0718c38e0..6677a95b843f 100644
--- a/stoc/source/security/lru_cache.h
+++ b/stoc/source/security/lru_cache.h
@@ -194,10 +194,7 @@ inline void lru_cache< t_key, t_val, t_hashKey, t_equalKey >::set(
entry->m_key = key;
::std::pair< typename t_key2element::iterator, bool > insertion(
m_key2element.insert( typename t_key2element::value_type( key, entry ) ) );
-#ifdef __CACHE_DIAGNOSE
OSL_ENSURE( insertion.second, "### inserting new cache entry failed?!" );
-#endif
- (void) insertion; // avoid warnings
}
else
{