diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-01-21 15:21:16 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-01-21 15:21:16 +0100 |
commit | 7c704c78d3c652504c064b4ac7af55a2c1ee49bb (patch) | |
tree | 623358cf25839219ef4fd90eea4f3eaa55389a1f /svl/source/uno | |
parent | 0d5167915b47df7c3e450614ea50d845ba959df3 (diff) |
Removed some unused parameters; added SAL_UNUSED_PARAMETER.
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC)
is used to annotate legitimately unused parameters, so that static
analysis tools can tell legitimately unused parameters from truly
unnecessary ones. To that end, some patches for external modules
are also added, that are only applied when compiling with GCC and
add necessary __attribute__ ((unused)) in headers.
Diffstat (limited to 'svl/source/uno')
-rw-r--r-- | svl/source/uno/pathservice.cxx | 3 | ||||
-rw-r--r-- | svl/source/uno/registerservices.cxx | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/svl/source/uno/pathservice.cxx b/svl/source/uno/pathservice.cxx index 24b6b5e8be3c..1586939380d1 100644 --- a/svl/source/uno/pathservice.cxx +++ b/svl/source/uno/pathservice.cxx @@ -93,7 +93,8 @@ public: // ----------------------------------------------------------------------- css::uno::Reference< css::uno::XInterface > PathService_CreateInstance ( - const css::uno::Reference< css::lang::XMultiServiceFactory > &) + SAL_UNUSED_PARAMETER const css::uno::Reference< + css::lang::XMultiServiceFactory > &) { return css::uno::Reference< css::uno::XInterface >( static_cast< cppu::OWeakObject* >(new PathService())); diff --git a/svl/source/uno/registerservices.cxx b/svl/source/uno/registerservices.cxx index a1bb6a976724..5b4f8280042b 100644 --- a/svl/source/uno/registerservices.cxx +++ b/svl/source/uno/registerservices.cxx @@ -54,7 +54,8 @@ extern "C" { SVL_DLLPUBLIC void* SAL_CALL svl_component_getFactory ( - const sal_Char * pImplementationName, void * _pServiceManager, void * /* _pRegistryKey*/) + const sal_Char * pImplementationName, void * _pServiceManager, + SAL_UNUSED_PARAMETER void * /* _pRegistryKey*/) { void * pResult = 0; if ( _pServiceManager ) |