mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Get rid of various compilation warnings.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4920
This commit is contained in:
parent
5efea53246
commit
dfc6b6ef3e
@ -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;
|
||||
|
||||
@ -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) \
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user