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:
@@ -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() );
|
||||
}
|
||||
|
Reference in New Issue
Block a user