Kaydet (Commit) 733a8cc0 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Unused return value of rtl_cache_constructor

Change-Id: I1e8b8ae65d9989683dde8f642f3c19355d10a571
Reviewed-on: https://gerrit.libreoffice.org/47238Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst fd3fc84e
...@@ -642,7 +642,7 @@ bool rtl_cache_depot_populate(rtl_cache_type * cache) ...@@ -642,7 +642,7 @@ bool rtl_cache_depot_populate(rtl_cache_type * cache)
return (empty != nullptr); return (empty != nullptr);
} }
int rtl_cache_constructor(void * obj) void rtl_cache_constructor(void * obj)
{ {
rtl_cache_type * cache = static_cast<rtl_cache_type*>(obj); rtl_cache_type * cache = static_cast<rtl_cache_type*>(obj);
...@@ -663,8 +663,6 @@ int rtl_cache_constructor(void * obj) ...@@ -663,8 +663,6 @@ int rtl_cache_constructor(void * obj)
/* depot layer */ /* depot layer */
RTL_MEMORY_LOCK_INIT(&(cache->m_depot_lock)); RTL_MEMORY_LOCK_INIT(&(cache->m_depot_lock));
return 1;
} }
void rtl_cache_destructor(void * obj) void rtl_cache_destructor(void * obj)
...@@ -945,7 +943,7 @@ try_alloc: ...@@ -945,7 +943,7 @@ try_alloc:
if (result) if (result)
{ {
rtl_cache_type * cache = result; rtl_cache_type * cache = result;
(void) rtl_cache_constructor (cache); rtl_cache_constructor (cache);
if (!source) if (!source)
{ {
...@@ -1368,7 +1366,7 @@ void rtl_cache_init() ...@@ -1368,7 +1366,7 @@ void rtl_cache_init()
{ {
/* list of caches */ /* list of caches */
RTL_MEMORY_LOCK_INIT(&(g_cache_list.m_lock)); RTL_MEMORY_LOCK_INIT(&(g_cache_list.m_lock));
(void) rtl_cache_constructor (&(g_cache_list.m_cache_head)); rtl_cache_constructor (&(g_cache_list.m_cache_head));
} }
{ {
/* cache: internal arena */ /* cache: internal arena */
...@@ -1393,7 +1391,7 @@ void rtl_cache_init() ...@@ -1393,7 +1391,7 @@ void rtl_cache_init()
static rtl_cache_type g_cache_magazine_cache; static rtl_cache_type g_cache_magazine_cache;
assert(!gp_cache_magazine_cache); assert(!gp_cache_magazine_cache);
(void) rtl_cache_constructor (&g_cache_magazine_cache); rtl_cache_constructor (&g_cache_magazine_cache);
gp_cache_magazine_cache = rtl_cache_activate ( gp_cache_magazine_cache = rtl_cache_activate (
&g_cache_magazine_cache, &g_cache_magazine_cache,
...@@ -1416,7 +1414,7 @@ void rtl_cache_init() ...@@ -1416,7 +1414,7 @@ void rtl_cache_init()
static rtl_cache_type g_cache_slab_cache; static rtl_cache_type g_cache_slab_cache;
assert(!gp_cache_slab_cache); assert(!gp_cache_slab_cache);
(void) rtl_cache_constructor (&g_cache_slab_cache); rtl_cache_constructor (&g_cache_slab_cache);
gp_cache_slab_cache = rtl_cache_activate ( gp_cache_slab_cache = rtl_cache_activate (
&g_cache_slab_cache, &g_cache_slab_cache,
...@@ -1436,7 +1434,7 @@ void rtl_cache_init() ...@@ -1436,7 +1434,7 @@ void rtl_cache_init()
static rtl_cache_type g_cache_bufctl_cache; static rtl_cache_type g_cache_bufctl_cache;
assert(!gp_cache_bufctl_cache); assert(!gp_cache_bufctl_cache);
(void) rtl_cache_constructor (&g_cache_bufctl_cache); rtl_cache_constructor (&g_cache_bufctl_cache);
gp_cache_bufctl_cache = rtl_cache_activate ( gp_cache_bufctl_cache = rtl_cache_activate (
&g_cache_bufctl_cache, &g_cache_bufctl_cache,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment