Avoid compiler warnings.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5071
This commit is contained in:
Nicholas Nethercote 2005-11-10 15:03:26 +00:00
parent dd590a7f95
commit 411f026243
2 changed files with 7 additions and 9 deletions

View File

@ -137,7 +137,8 @@ UWord VG_(register_stack)(Addr start, Addr end)
current_stack = i;
}
VG_(debugLog)(2, "stacks", "register %p-%p as stack %d\n", start, end, i->id);
VG_(debugLog)(2, "stacks", "register %p-%p as stack %lu\n",
(void*)start, (void*)end, i->id);
return i->id;
}
@ -151,7 +152,7 @@ void VG_(deregister_stack)(UWord id)
Stack *i = stacks;
Stack *prev = NULL;
VG_(debugLog)(2, "stacks", "deregister stack %d\n", id);
VG_(debugLog)(2, "stacks", "deregister stack %lu\n", id);
if (current_stack->id == id) {
current_stack = NULL;
@ -183,8 +184,9 @@ void VG_(change_stack)(UWord id, Addr start, Addr end)
while (i) {
if (i->id == id) {
VG_(debugLog)(2, "stacks", "change stack %d from %p-%p to %p-%p\n",
id, i->start, i->end, start, end);
VG_(debugLog)(2, "stacks", "change stack %lu from %p-%p to %p-%p\n",
id, (void*)i->start, (void*)i->end,
(void*)start, (void*)end);
i->start = start;
i->end = end;
return;

View File

@ -18,7 +18,7 @@ struct test {
static const struct test *cur_test;
static int zero();
static jmp_buf escape;
@ -158,7 +158,3 @@ int main()
return 0;
}
static int zero()
{
return 0;
}