summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-05-31 18:17:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-05-31 18:17:03 +0200
commit94d9d895edac0b99e0fbc94ff7763292af1fdc5b (patch)
treef3806cd6e5c2acd1fb74f97451ddb719406c35f4 /cppuhelper
parent967e9e6bbb36eb925c14b43b9baff541d82ee4c0 (diff)
Remove some unnecessary scaffolding around SAL_WARN calls
Change-Id: Iaec105d85a283ad15fdca6ffc5cf3d2ec5acac18
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/component.cxx1
-rw-r--r--cppuhelper/source/component_context.cxx1
-rw-r--r--cppuhelper/source/implbase.cxx2
-rw-r--r--cppuhelper/source/weak.cxx1
4 files changed, 0 insertions, 5 deletions
diff --git a/cppuhelper/source/component.cxx b/cppuhelper/source/component.cxx
index 333812495fa6..7b974ec76586 100644
--- a/cppuhelper/source/component.cxx
+++ b/cppuhelper/source/component.cxx
@@ -92,7 +92,6 @@ void OComponentHelper::release() throw()
catch (css::uno::RuntimeException & exc)
{
// release should not throw exceptions
- (void) exc; // avoid warning about unused variable
SAL_WARN( "cppuhelper", exc.Message );
}
diff --git a/cppuhelper/source/component_context.cxx b/cppuhelper/source/component_context.cxx
index ee964e227c57..952ee693659c 100644
--- a/cppuhelper/source/component_context.cxx
+++ b/cppuhelper/source/component_context.cxx
@@ -573,7 +573,6 @@ extern "C" { static void s_createComponentContext_v(va_list * pParam)
}
catch (Exception & exc)
{
- (void) exc; // avoid warning about unused variable
SAL_WARN( "cppuhelper", exc.Message );
xContext.clear();
}
diff --git a/cppuhelper/source/implbase.cxx b/cppuhelper/source/implbase.cxx
index c8b72f61a48f..a64418ffaccd 100644
--- a/cppuhelper/source/implbase.cxx
+++ b/cppuhelper/source/implbase.cxx
@@ -77,7 +77,6 @@ void WeakComponentImplHelperBase::release()
dispose();
}
catch (RuntimeException const& exc) { // don't break throw ()
- (void)exc;
SAL_WARN( "cppuhelper", exc.Message );
}
OSL_ASSERT( rBHelper.bDisposed );
@@ -202,7 +201,6 @@ void WeakAggComponentImplHelperBase::release()
dispose();
}
catch (RuntimeException const& exc) { // don't break throw ()
- (void)exc;
SAL_WARN( "cppuhelper", exc.Message );
}
OSL_ASSERT( rBHelper.bDisposed );
diff --git a/cppuhelper/source/weak.cxx b/cppuhelper/source/weak.cxx
index 6bd49fa212ec..3eec26d11647 100644
--- a/cppuhelper/source/weak.cxx
+++ b/cppuhelper/source/weak.cxx
@@ -243,7 +243,6 @@ void OWeakObject::disposeWeakConnectionPoint()
p->dispose();
}
catch (RuntimeException const& exc) {
- (void)exc;
SAL_WARN( "cppuhelper", exc.Message );
}
p->release();