From 94d9d895edac0b99e0fbc94ff7763292af1fdc5b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 31 May 2017 18:17:03 +0200 Subject: Remove some unnecessary scaffolding around SAL_WARN calls Change-Id: Iaec105d85a283ad15fdca6ffc5cf3d2ec5acac18 --- cppuhelper/source/component.cxx | 1 - cppuhelper/source/component_context.cxx | 1 - cppuhelper/source/implbase.cxx | 2 -- cppuhelper/source/weak.cxx | 1 - 4 files changed, 5 deletions(-) (limited to 'cppuhelper/source') 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(); -- cgit