summaryrefslogtreecommitdiff
path: root/exp-dhat
diff options
context:
space:
mode:
authorsewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2011-03-28 16:26:42 +0000
committersewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2011-03-28 16:26:42 +0000
commitc7ffc94890e120c72d5802487b1092425323dc02 (patch)
tree78b4c28182a361b327803f06aaf258e1e54fa229 /exp-dhat
parentd5ea6f504536f745bc8cc3b67da837bee6f8de25 (diff)
Fix up most but not all warnings generated by gcc-4.6 about
dead assignments ("[-Wunused-but-set-variable]"). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11673 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'exp-dhat')
-rw-r--r--exp-dhat/dh_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/exp-dhat/dh_main.c b/exp-dhat/dh_main.c
index 82eb941b..810a289a 100644
--- a/exp-dhat/dh_main.c
+++ b/exp-dhat/dh_main.c
@@ -452,7 +452,7 @@ void* new_block ( ThreadId tid, void* p, SizeT req_szB, SizeT req_alignB,
Bool is_zeroed )
{
tl_assert(p == NULL); // don't handle custom allocators right now
- SizeT actual_szB, slop_szB;
+ SizeT actual_szB /*, slop_szB*/;
if ((SSizeT)req_szB < 0) return NULL;
@@ -468,9 +468,9 @@ void* new_block ( ThreadId tid, void* p, SizeT req_szB, SizeT req_alignB,
if (is_zeroed) VG_(memset)(p, 0, req_szB);
actual_szB = VG_(malloc_usable_size)(p);
tl_assert(actual_szB >= req_szB);
- slop_szB = actual_szB - req_szB;
+ /* slop_szB = actual_szB - req_szB; */
} else {
- slop_szB = 0;
+ /* slop_szB = 0; */
}
// Make new HP_Chunk node, add to malloc_list