]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Remove a couple of compiler warnings.
authorNicholas Nethercote <njn@valgrind.org>
Thu, 24 Mar 2005 04:44:26 +0000 (04:44 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Thu, 24 Mar 2005 04:44:26 +0000 (04:44 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3423

none/tests/x86/sigcontext.c

index 940f1a5bc0110a0c55f8854a355ecb77ec804ca8..5ef9cb4096e539dc5abf4da2c466a77d93baeb70 100644 (file)
@@ -29,7 +29,7 @@ static void handler2(int sig, struct sigcontext sc)
        /* Since the handler will be called as kill leaves the kernel,
           this is replacing the kill syscall's return value. */
        if (sc.eax != 0)
-               printf("FAILED: handler2 expected eax == 0, not %d\n", sc.eax);
+               printf("FAILED: handler2 expected eax == 0, not %p\n", (void*)sc.eax);
 
        sc.eax = VAL2;
 
@@ -44,7 +44,7 @@ int main()
 {
        struct sigaction sa;
        int ret;
-       int v1, v2, v3, v4;
+       int v2, v3, v4;
 
        sa.sa_handler = handler1;
        sa.sa_flags = SA_SIGINFO;