From: Nicholas Nethercote Date: Fri, 14 Oct 2005 13:48:54 +0000 (+0000) Subject: Avoid two compiler warnings. X-Git-Tag: svn/VALGRIND_3_1_0~311 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=04d5174fd15ec69b490659fa02a66926dfc8994b;p=thirdparty%2Fvalgrind.git Avoid two compiler warnings. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4921 --- diff --git a/coregrind/m_debuginfo/symtypes.c b/coregrind/m_debuginfo/symtypes.c index b391fb9b28..533de63410 100644 --- a/coregrind/m_debuginfo/symtypes.c +++ b/coregrind/m_debuginfo/symtypes.c @@ -760,7 +760,9 @@ Char *VG_(describe_addr)(ThreadId tid, Addr addr) Bool keep = False; /* Add a new variable to the list */ - void newvar(Char *name, SymType *ty, Addr valuep, UInt size) { + // (the declaration avoids a compiler warning) + static void newvar(Char *name, SymType *ty, Addr valuep, UInt size); + void newvar(Char *name, SymType *ty, Addr valuep, UInt size) { Variable *v; /* have we been here before? */ @@ -980,7 +982,8 @@ Char *VG_(describe_addr)(ThreadId tid, Addr addr) Char expr[len*2]; Char *sp = &expr[len]; /* pointer at start of string */ Char *ep = sp; /* pointer at end of string */ - void genstring(Variable *v, Variable *inner) { + static void genstring(Variable *v, Variable *inner); // avoid warning + void genstring(Variable *v, Variable *inner) { Variable *c = v->container; if (c != NULL)