summaryrefslogtreecommitdiff
path: root/sal/rtl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-10-24 23:41:21 +0200
committerStephan Bergmann <sbergman@redhat.com>2011-10-24 23:42:35 +0200
commit041b54fef20668abaab5bcc7b52dfc31695c25d2 (patch)
treee7484fa323f26162fa21dad9887c36771200bf99 /sal/rtl
parentfb95e1d94538ff7847f0597be756ff289a5608f5 (diff)
Avoid Clang -Wunused-value with trunk rev. 12226 Valgrind.
Diffstat (limited to 'sal/rtl')
-rw-r--r--sal/rtl/source/alloc_arena.c2
-rw-r--r--sal/rtl/source/alloc_cache.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/sal/rtl/source/alloc_arena.c b/sal/rtl/source/alloc_arena.c
index 5984f7525400..39364818b1c0 100644
--- a/sal/rtl/source/alloc_arena.c
+++ b/sal/rtl/source/alloc_arena.c
@@ -1100,7 +1100,7 @@ SAL_CALL rtl_arena_free (
/* DEBUG ONLY: mark unallocated, undefined */
VALGRIND_MEMPOOL_FREE(arena, segment->m_addr);
- /* OSL_DEBUG_ONLY() */ VALGRIND_MAKE_MEM_UNDEFINED(segment->m_addr, segment->m_size);
+ /* OSL_DEBUG_ONLY() */ (void) VALGRIND_MAKE_MEM_UNDEFINED(segment->m_addr, segment->m_size);
OSL_DEBUG_ONLY(memset((void*)(segment->m_addr), 0x33333333, segment->m_size));
/* coalesce w/ adjacent free segment(s) */
diff --git a/sal/rtl/source/alloc_cache.c b/sal/rtl/source/alloc_cache.c
index 4fa16f4e6039..e4cbc744f342 100644
--- a/sal/rtl/source/alloc_cache.c
+++ b/sal/rtl/source/alloc_cache.c
@@ -500,7 +500,7 @@ rtl_cache_slab_alloc (
addr = bufctl;
/* DEBUG ONLY: mark allocated, undefined */
- /* OSL_DEBUG_ONLY() */ VALGRIND_MAKE_MEM_UNDEFINED(addr, cache->m_type_size);
+ /* OSL_DEBUG_ONLY() */ (void) VALGRIND_MAKE_MEM_UNDEFINED(addr, cache->m_type_size);
OSL_DEBUG_ONLY(memset(addr, 0x77777777, cache->m_type_size));
VALGRIND_MEMPOOL_ALLOC(cache, addr, cache->m_type_size);
}
@@ -527,7 +527,7 @@ rtl_cache_slab_free (
/* DEBUG ONLY: mark unallocated, undefined */
VALGRIND_MEMPOOL_FREE(cache, addr);
- /* OSL_DEBUG_ONLY() */ VALGRIND_MAKE_MEM_UNDEFINED(addr, cache->m_type_size);
+ /* OSL_DEBUG_ONLY() */ (void) VALGRIND_MAKE_MEM_UNDEFINED(addr, cache->m_type_size);
OSL_DEBUG_ONLY(memset(addr, 0x33333333, cache->m_type_size));
/* determine slab from addr */
@@ -641,7 +641,7 @@ rtl_cache_magazine_clear (
if (cache->m_destructor != 0)
{
/* DEBUG ONLY: keep constructed object defined */
- VALGRIND_MAKE_MEM_DEFINED(obj, cache->m_type_size);
+ (void) VALGRIND_MAKE_MEM_DEFINED(obj, cache->m_type_size);
/* destruct object */
(cache->m_destructor)(obj, cache->m_userarg);
@@ -1237,7 +1237,7 @@ SAL_CALL rtl_cache_alloc (
if (cache->m_constructor != 0)
{
/* keep constructed object defined */
- VALGRIND_MAKE_MEM_DEFINED(obj, cache->m_type_size);
+ (void) VALGRIND_MAKE_MEM_DEFINED(obj, cache->m_type_size);
}
#endif /* HAVE_VALGRIND_MEMCHECK_H */
cache->m_cpu_stats.m_alloc += 1;