]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Get rid of various compilation warnings.
authorJulian Seward <jseward@acm.org>
Fri, 14 Oct 2005 11:25:49 +0000 (11:25 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 14 Oct 2005 11:25:49 +0000 (11:25 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4920

coregrind/m_main.c
coregrind/m_signals.c
coregrind/m_syscall.c

index 8727d7ff5de477d84f82aff26e3c9760befb711f..2cc1e4a4707b7d304fc0fb80090749c24698a2a1 100644 (file)
@@ -768,9 +768,10 @@ static HChar* find_executable ( HChar* exec )
       VG_(strncpy)( executable_name_out, exec, VKI_PATH_MAX-1 );
    } else {
       // No '/' - we need to search the path
+      HChar* path;
       VG_(strncpy)( executable_name_in,  exec, VKI_PATH_MAX-1 );
       VG_(memset) ( executable_name_out, 0,    VKI_PATH_MAX );
-      HChar *path = VG_(getenv)("PATH");
+      path = VG_(getenv)("PATH");
       scan_colsep(path, match_executable);
    }
    return VG_STREQ(executable_name_out, "") ? NULL : executable_name_out;
index 4a0542188c39d2c466ea5dea40a3e3ce9f90d703..8f31772b82ebdeaf1eb319574167900dafd0fa5d 100644 (file)
@@ -392,7 +392,7 @@ void calculate_SKSS_from_SCSS ( SKSS* dst )
 
 // We need two levels of macro-expansion here to convert __NR_rt_sigreturn
 // to a number before converting it to a string... sigh.
-static void my_sigreturn(void);
+extern void my_sigreturn(void);
 
 #if defined(VGP_x86_linux)
 #  define _MYSIG(name) \
index a0938d59eb841aba127842750669d0d46aaa852d..58b031229e5ab6736a02e36db62fad2deeb89a3a 100644 (file)
@@ -105,7 +105,7 @@ SysRes VG_(mk_SysRes_Success) ( UWord val ) {
    clobbers, so we preserve all the callee-save regs (%esi, %edi, %ebx,
    %ebp).
 */
-static UWord do_syscall_WRK (
+extern UWord do_syscall_WRK (
           UWord syscall_no, 
           UWord a1, UWord a2, UWord a3,
           UWord a4, UWord a5, UWord a6
@@ -143,7 +143,7 @@ asm(
    no matter, they are caller-save (the syscall clobbers no callee-save
    regs, so we don't have to do any register saving/restoring).
 */
-static UWord do_syscall_WRK (
+extern UWord do_syscall_WRK (
           UWord syscall_no, 
           UWord a1, UWord a2, UWord a3,
           UWord a4, UWord a5, UWord a6
@@ -173,7 +173,7 @@ asm(
    We return a ULong, of which %r3 is the high word, and %r4 the low.
    No callee-save regs are clobbered, so no saving/restoring is needed.
 */
-static ULong do_syscall_WRK (
+extern ULong do_syscall_WRK (
           UWord syscall_no, 
           UWord a1, UWord a2, UWord a3,
           UWord a4, UWord a5, UWord a6