Get rid of dead code and/or localise global functions as needed to
avoid warnings from -fwarn-missing-prototypes. vg_replace_malloc.c
has not been done yet though.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3298 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_main.c b/coregrind/vg_main.c
index 3776954..d49d966 100644
--- a/coregrind/vg_main.c
+++ b/coregrind/vg_main.c
@@ -324,11 +324,6 @@
return STACK_PTR( VG_(threads)[tid].arch );
}
-/* Debugging thing .. can be called from assembly with OYNK macro. */
-void VG_(oynk) ( Int n )
-{
- OINK(n);
-}
/*====================================================================*/
/*=== Check we were launched by stage 1 ===*/
@@ -1384,7 +1379,7 @@
}
// Remove padding of 'padfile' from a range of address space.
-void as_unpad(void *start, void *end, int padfile)
+static void as_unpad(void *start, void *end, int padfile)
{
static struct stat padstat;
killpad_extra extra;
@@ -1400,7 +1395,7 @@
foreach_map(killpad, &extra);
}
-void as_closepadfile(int padfile)
+static void as_closepadfile(int padfile)
{
int res = close(padfile);
vg_assert(0 == res);
@@ -1458,7 +1453,7 @@
static Bool VG_(clo_wait_for_gdb) = False;
-void usage ( Bool debug_help )
+static void usage ( Bool debug_help )
{
Char* usage1 =
"usage: valgrind --tool=<toolname> [options] prog-and-args\n"