From d22ef4eb1234fc14ae965189b7a2f4e21451fd20 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 26 Apr 2017 17:35:40 +0200 Subject: loplugin:redundantcast (clang-cl) Change-Id: I5164bc1bfa1aaae0f648e0384227d92c8b2ff7a3 --- sal/rtl/alloc_arena.cxx | 2 +- sal/rtl/alloc_cache.cxx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'sal') diff --git a/sal/rtl/alloc_arena.cxx b/sal/rtl/alloc_arena.cxx index 68dd29836ef5..1459c06816d6 100644 --- a/sal/rtl/alloc_arena.cxx +++ b/sal/rtl/alloc_arena.cxx @@ -596,7 +596,7 @@ rtl_arena_constructor (void * obj) QUEUE_START_NAMED(arena, arena_); - (void) RTL_MEMORY_LOCK_INIT(&(arena->m_lock)); + RTL_MEMORY_LOCK_INIT(&(arena->m_lock)); head = &(arena->m_segment_reserve_span_head); rtl_arena_segment_constructor (head); diff --git a/sal/rtl/alloc_cache.cxx b/sal/rtl/alloc_cache.cxx index 1529626e0537..79c8e76e8ca3 100644 --- a/sal/rtl/alloc_cache.cxx +++ b/sal/rtl/alloc_cache.cxx @@ -736,7 +736,7 @@ rtl_cache_constructor (void * obj) QUEUE_START_NAMED(cache, cache_); /* slab layer */ - (void)RTL_MEMORY_LOCK_INIT(&(cache->m_slab_lock)); + RTL_MEMORY_LOCK_INIT(&(cache->m_slab_lock)); QUEUE_START_NAMED(&(cache->m_free_head), slab_); QUEUE_START_NAMED(&(cache->m_used_head), slab_); @@ -746,7 +746,7 @@ rtl_cache_constructor (void * obj) cache->m_hash_shift = highbit(cache->m_hash_size) - 1; /* depot layer */ - (void)RTL_MEMORY_LOCK_INIT(&(cache->m_depot_lock)); + RTL_MEMORY_LOCK_INIT(&(cache->m_depot_lock)); return 1; } @@ -762,7 +762,7 @@ rtl_cache_destructor (void * obj) assert(QUEUE_STARTED_NAMED(cache, cache_)); /* slab layer */ - (void)RTL_MEMORY_LOCK_DESTROY(&(cache->m_slab_lock)); + RTL_MEMORY_LOCK_DESTROY(&(cache->m_slab_lock)); assert(QUEUE_STARTED_NAMED(&(cache->m_free_head), slab_)); assert(QUEUE_STARTED_NAMED(&(cache->m_used_head), slab_)); @@ -772,7 +772,7 @@ rtl_cache_destructor (void * obj) assert(cache->m_hash_shift == highbit(cache->m_hash_size) - 1); /* depot layer */ - (void)RTL_MEMORY_LOCK_DESTROY(&(cache->m_depot_lock)); + RTL_MEMORY_LOCK_DESTROY(&(cache->m_depot_lock)); } /* ================================================================= */ -- cgit