From: Nicholas Nethercote Date: Thu, 24 Mar 2005 04:44:26 +0000 (+0000) Subject: Remove a couple of compiler warnings. X-Git-Tag: svn/VALGRIND_3_0_0~895 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bda11d0c1341a7133decbe60f1cb106768aa3c2;p=thirdparty%2Fvalgrind.git Remove a couple of compiler warnings. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3423 --- diff --git a/none/tests/x86/sigcontext.c b/none/tests/x86/sigcontext.c index 940f1a5bc0..5ef9cb4096 100644 --- a/none/tests/x86/sigcontext.c +++ b/none/tests/x86/sigcontext.c @@ -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;