diff options
author | Tor Lillqvist <tml@collabora.com> | 2013-09-09 22:24:49 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2013-09-09 22:25:50 +0300 |
commit | 7323bc340501c2600944193df54295c28de5482c (patch) | |
tree | 6998cf76c68cfb4356edeaf762de12ad7f3b589e /framework | |
parent | 4bd34964251d1d65dfc9ecb3fded60fa71a07cf8 (diff) |
WaE: warning C4100: 'aEvent' : unreferenced formal parameter
I thought SAL_WARN_IF etc worked in such a way that any variables used
in the condition would be "used" from the compiler's point of view,
even in an optimising build case where SAL_DETAIL_ENABLE_LOG_WARN is
false and SAL_WARN_IF should optimise away?
Change-Id: I728e1eeb8559e1299abf403afceb0e2748d08857
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/helper/ocomponentenumeration.cxx | 1 | ||||
-rw-r--r-- | framework/source/services/frame.cxx | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/framework/source/helper/ocomponentenumeration.cxx b/framework/source/helper/ocomponentenumeration.cxx index 1c658732dcd8..2a3de3bccba5 100644 --- a/framework/source/helper/ocomponentenumeration.cxx +++ b/framework/source/helper/ocomponentenumeration.cxx @@ -71,6 +71,7 @@ void SAL_CALL OComponentEnumeration::disposing( const EventObject& aEvent ) thro // Safe impossible cases // This method is not specified for all incoming parameters. + (void) aEvent; SAL_WARN_IF( !impldbg_checkParameter_disposing( aEvent ), "fwk", "OComponentEnumeration::disposing(): Invalid parameter detected!" ); // Reset instance to defaults, release references and free memory. diff --git a/framework/source/services/frame.cxx b/framework/source/services/frame.cxx index 6c06d503a84e..0a4eefcb25d6 100644 --- a/framework/source/services/frame.cxx +++ b/framework/source/services/frame.cxx @@ -2174,6 +2174,7 @@ void SAL_CALL Frame::windowResized( const css::awt::WindowEvent& aEvent ) throw( { /* UNSAFE AREA --------------------------------------------------------------------------------------------- */ // Check incoming parameter. + (void) aEvent; SAL_WARN_IF( implcp_windowResized( aEvent ), "fwk", "Frame::windowResized(): Invalid parameter detected." ); // Look for rejected calls. // Part of dispose-mechanism => soft exceptions @@ -2190,6 +2191,7 @@ void SAL_CALL Frame::focusGained( const css::awt::FocusEvent& aEvent ) throw( cs { /* UNSAFE AREA --------------------------------------------------------------------------------------------- */ // Check incoming parameter. + (void) aEvent; SAL_WARN_IF( implcp_focusGained( aEvent ), "fwk", "Frame::focusGained(): Invalid parameter detected." ); // Look for rejected calls. // Part of dispose() mechanism ... => soft exceptions! @@ -2226,6 +2228,7 @@ void SAL_CALL Frame::windowActivated( const css::lang::EventObject& aEvent ) thr { /* UNSAFE AREA --------------------------------------------------------------------------------------------- */ // Check incoming parameter. + (void) aEvent; SAL_WARN_IF( implcp_windowActivated( aEvent ), "fwk", "Frame::windowActivated(): Invalid parameter detected." ); // Look for rejected calls. TransactionGuard aTransaction( m_aTransactionManager, E_HARDEXCEPTIONS ); @@ -2249,6 +2252,7 @@ void SAL_CALL Frame::windowDeactivated( const css::lang::EventObject& aEvent ) t { /* UNSAFE AREA --------------------------------------------------------------------------------------------- */ // Check incoming parameter. + (void) aEvent; SAL_WARN_IF( implcp_windowDeactivated( aEvent ), "fwk", "Frame::windowDeactivated(): Invalid parameter detected." ); // Look for rejected calls. // Sometimes called during dispose() => soft exceptions |