|
From: <sv...@va...> - 2005-10-14 11:25:53
|
Author: sewardj
Date: 2005-10-14 12:25:49 +0100 (Fri, 14 Oct 2005)
New Revision: 4920
Log:
Get rid of various compilation warnings.
Modified:
trunk/coregrind/m_main.c
trunk/coregrind/m_signals.c
trunk/coregrind/m_syscall.c
Modified: trunk/coregrind/m_main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_main.c 2005-10-14 11:13:14 UTC (rev 4919)
+++ trunk/coregrind/m_main.c 2005-10-14 11:25:49 UTC (rev 4920)
@@ -768,9 +768,10 @@
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 =3D VG_(getenv)("PATH");
+ path =3D VG_(getenv)("PATH");
scan_colsep(path, match_executable);
}
return VG_STREQ(executable_name_out, "") ? NULL : executable_name_out=
;
Modified: trunk/coregrind/m_signals.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_signals.c 2005-10-14 11:13:14 UTC (rev 4919)
+++ trunk/coregrind/m_signals.c 2005-10-14 11:25:49 UTC (rev 4920)
@@ -392,7 +392,7 @@
=20
// We need two levels of macro-expansion here to convert __NR_rt_sigretu=
rn
// to a number before converting it to a string... sigh.
-static void my_sigreturn(void);
+extern void my_sigreturn(void);
=20
#if defined(VGP_x86_linux)
# define _MYSIG(name) \
Modified: trunk/coregrind/m_syscall.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_syscall.c 2005-10-14 11:13:14 UTC (rev 4919)
+++ trunk/coregrind/m_syscall.c 2005-10-14 11:25:49 UTC (rev 4920)
@@ -105,7 +105,7 @@
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,=20
UWord a1, UWord a2, UWord a3,
UWord a4, UWord a5, UWord a6
@@ -143,7 +143,7 @@
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,=20
UWord a1, UWord a2, UWord a3,
UWord a4, UWord a5, UWord a6
@@ -173,7 +173,7 @@
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,=20
UWord a1, UWord a2, UWord a3,
UWord a4, UWord a5, UWord a6
|