]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Unbreak build (for me, gcc-4.0.0-pre -- nested functions can't be static).
authorNicholas Nethercote <njn@valgrind.org>
Sat, 12 Mar 2005 15:39:54 +0000 (15:39 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Sat, 12 Mar 2005 15:39:54 +0000 (15:39 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3302

coregrind/vg_symtypes.c

index 8e9d0794bd8b7b08ce9c3eeef90fa9b174611170..b0e386a2a6a4a2553c81f5fa20b92b45e06128b2 100644 (file)
@@ -748,7 +748,7 @@ Char *VG_(describe_addr)(ThreadId tid, Addr addr)
         Bool keep = False;
 
         /* Add a new variable to the list */
-        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? */
@@ -968,7 +968,7 @@ 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 */
-        static void genstring(Variable *v, Variable *inner) {
+        void genstring(Variable *v, Variable *inner) {
            Variable *c = v->container;
 
            if (c != NULL)