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.
This commit is contained in:
Stephan Bergmann
2012-01-21 15:21:16 +01:00
parent 0d5167915b
commit 7c704c78d3
424 changed files with 2217 additions and 1336 deletions

View File

@@ -443,7 +443,8 @@ Reference< XInputStream > OTextInputStream::getInputStream()
}
Reference< XInterface > SAL_CALL TextInputStream_CreateInstance( const Reference< XComponentContext > &)
Reference< XInterface > SAL_CALL TextInputStream_CreateInstance(
SAL_UNUSED_PARAMETER const Reference< XComponentContext > &)
{
return Reference < XInterface >( ( OWeakObject * ) new OTextInputStream() );
}