]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Try to avoid compiler warnings on AMD64.
authorNicholas Nethercote <njn@valgrind.org>
Thu, 10 Nov 2005 04:02:19 +0000 (04:02 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Thu, 10 Nov 2005 04:02:19 +0000 (04:02 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5065

coregrind/m_syswrap/priv_syswrap-linux.h
coregrind/m_syswrap/syswrap-amd64-linux.c
coregrind/m_syswrap/syswrap-linux.c
coregrind/m_syswrap/syswrap-ppc32-linux.c
coregrind/m_syswrap/syswrap-x86-linux.c

index 6c871be817148c91828029d18e06ae2ffbab702c..addb5bc797a28ee74fc6b5439161e1daae919c42 100644 (file)
@@ -34,7 +34,7 @@
 /* requires #include "priv_types_n_macros.h" */
 
 // Clone-related functions
-extern Int  ML_(start_thread_NORETURN) ( void* arg );
+extern Word ML_(start_thread_NORETURN) ( void* arg );
 extern Addr ML_(allocstack)            ( ThreadId tid );
 extern void ML_(call_on_new_stack_0_1) ( Addr stack, Addr retaddr,
                                         void (*f)(Word), Word arg1 );
index 257820d39feea52c02b54ed2a246b207af72614d..84923cc0f0e1d89be1d98c1e992c5e9330e8ea56 100644 (file)
@@ -126,7 +126,7 @@ asm(
 #define __NR_EXIT         VG_STRINGIFY(__NR_exit)
 
 extern
-Long do_syscall_clone_amd64_linux ( Long (*fn)(void *), 
+Long do_syscall_clone_amd64_linux ( Word (*fn)(void *), 
                                     void* stack, 
                                     Long  flags, 
                                     void* arg,
index e1615c53311434d4545ff54e647941571f8028ee..da0546854ae9822f4e04794e246ee3b64908004f 100644 (file)
@@ -198,7 +198,7 @@ static void run_a_thread_NORETURN ( Word tidW )
    vg_assert(0);
 }
 
-Int ML_(start_thread_NORETURN) ( void* arg )
+Word ML_(start_thread_NORETURN) ( void* arg )
 {
    ThreadState* tst = (ThreadState*)arg;
    ThreadId     tid = tst->tid;
index e171a59080ea06fa1188d06d5b5dded7baaf46fe..f88492757d7b5d2828bdc7cc9a9ee0e3aa998309 100644 (file)
@@ -143,7 +143,7 @@ asm(
 #define __NR_EXIT         VG_STRINGIFY(__NR_exit)
 
 extern
-ULong do_syscall_clone_ppc32_linux ( Int (*fn)(void *), 
+ULong do_syscall_clone_ppc32_linux ( Word (*fn)(void *), 
                                      void* stack, 
                                      Int   flags, 
                                      void* arg,
index f5c00ac591a332ed7b5f038a1445cccdfbff9188..d9b0583944ec806bea84014c8b2d499d8f846d80 100644 (file)
@@ -128,7 +128,7 @@ asm(
 #define __NR_EXIT         VG_STRINGIFY(__NR_exit)
 
 extern
-Int do_syscall_clone_x86_linux ( Int (*fn)(void *), 
+Int do_syscall_clone_x86_linux ( Word (*fn)(void *), 
                                  void* stack, 
                                  Int   flags, 
                                  void* arg,