summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard Clayton <richard@highwayman.com>2015-12-20 18:07:18 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2015-12-20 18:07:18 +0000
commit4d8bb202c2acd917cba95c35d45f832481b85e56 (patch)
tree286c7bee04816e30bafa565fd9c30e5c0c8107bc /src
parenta5840e10d3c6da8c3ad6cfa135e257b7d6f81aaa (diff)
Compiler quietening
Diffstat (limited to 'src')
-rw-r--r--src/src/store.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/src/store.c b/src/src/store.c
index 790f79ddb..2bb3490e1 100644
--- a/src/src/store.c
+++ b/src/src/store.c
@@ -177,7 +177,7 @@ if (size > yield_length[store_pool])
yield_length[store_pool] = newblock->length;
next_yield[store_pool] =
(void *)((char *)current_block[store_pool] + ALIGNED_SIZEOF_STOREBLOCK);
- VALGRIND_MAKE_MEM_NOACCESS(next_yield[store_pool], yield_length[store_pool]);
+ (void) VALGRIND_MAKE_MEM_NOACCESS(next_yield[store_pool], yield_length[store_pool]);
}
/* There's (now) enough room in the current block; the yield is the next
@@ -202,7 +202,7 @@ DEBUG(D_memory)
}
#endif /* COMPILE_UTILITY */
-VALGRIND_MAKE_MEM_UNDEFINED(store_last_get[store_pool], size);
+(void) VALGRIND_MAKE_MEM_UNDEFINED(store_last_get[store_pool], size);
/* Update next pointer and number of bytes left in the current block. */
next_yield[store_pool] = (void *)((char *)next_yield[store_pool] + size);
@@ -297,7 +297,7 @@ DEBUG(D_memory)
if (newsize % alignment != 0) newsize += alignment - (newsize % alignment);
next_yield[store_pool] = (char *)ptr + newsize;
yield_length[store_pool] -= newsize - rounded_oldsize;
-VALGRIND_MAKE_MEM_UNDEFINED(ptr + oldsize, inc);
+(void) VALGRIND_MAKE_MEM_UNDEFINED(ptr + oldsize, inc);
return TRUE;
}
@@ -356,7 +356,7 @@ newlength = bc + b->length - (char *)ptr;
#ifndef COMPILE_UTILITY
if (running_in_test_harness) memset(ptr, 0xF0, newlength);
#endif
-VALGRIND_MAKE_MEM_NOACCESS(ptr, newlength);
+(void) VALGRIND_MAKE_MEM_NOACCESS(ptr, newlength);
yield_length[store_pool] = newlength - (newlength % alignment);
next_yield[store_pool] = (char *)ptr + (newlength % alignment);
current_block[store_pool] = b;
@@ -370,7 +370,8 @@ if (yield_length[store_pool] < STOREPOOL_MIN_SIZE &&
b->next->length == STORE_BLOCK_SIZE)
{
b = b->next;
- VALGRIND_MAKE_MEM_NOACCESS((char *)b + ALIGNED_SIZEOF_STOREBLOCK, b->length - ALIGNED_SIZEOF_STOREBLOCK);
+ (void) VALGRIND_MAKE_MEM_NOACCESS((char *)b + ALIGNED_SIZEOF_STOREBLOCK,
+ b->length - ALIGNED_SIZEOF_STOREBLOCK);
}
bb = b->next;