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 /store/source/storbios.cxx | |
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 'store/source/storbios.cxx')
-rw-r--r-- | store/source/storbios.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/store/source/storbios.cxx b/store/source/storbios.cxx index 2bdd46b78833..fc76cbfb12c1 100644 --- a/store/source/storbios.cxx +++ b/store/source/storbios.cxx @@ -199,16 +199,16 @@ struct SuperBlockPage { return rtl_allocateMemory (sal::static_int_cast<sal_Size>(n)); } - static void operator delete (void * p, size_t) SAL_THROW(()) + static void operator delete (void * p) SAL_THROW(()) { rtl_freeMemory (p); } - static void * operator new (size_t, sal_uInt16 nPageSize) SAL_THROW(()) + static void * operator new (SAL_UNUSED_PARAMETER size_t, sal_uInt16 nPageSize) SAL_THROW(()) { return rtl_allocateZeroMemory (sal::static_int_cast<sal_Size>(nPageSize)); } - static void operator delete (void * p, sal_uInt16) SAL_THROW(()) + static void operator delete (void * p, SAL_UNUSED_PARAMETER sal_uInt16) SAL_THROW(()) { rtl_freeMemory (p); } @@ -422,7 +422,8 @@ OStorePageBIOS::Ace::~Ace() } int -SAL_CALL OStorePageBIOS::Ace::constructor (void * obj, void * /* arg */) +SAL_CALL OStorePageBIOS::Ace::constructor ( + void * obj, SAL_UNUSED_PARAMETER void * /* arg */) { Ace * ace = static_cast<Ace*>(obj); ace->m_next = ace->m_prev = ace; @@ -782,8 +783,7 @@ storeError OStorePageBIOS::acquirePage ( * releasePage. * Precond: initialized. */ -storeError OStorePageBIOS::releasePage ( - const OStorePageDescriptor& rDescr, storeAccessMode /* eMode */) +storeError OStorePageBIOS::releasePage (const OStorePageDescriptor& rDescr) { // Acquire exclusive access. osl::MutexGuard aGuard (m_aMutex); |