This fixes a problem when using KNR compilers.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 19 Jul 1998 05:28:57 +0000 (05:28 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 19 Jul 1998 05:28:57 +0000 (05:28 +0000)
        * cplus-dem.c (demangle_nested_args): Make function definition
        static to match the prototype.

From-SVN: r21281

gcc/ChangeLog
gcc/cplus-dem.c
libiberty/ChangeLog
libiberty/cplus-dem.c

index b7fbd76f363490449e586849fc0250d450e993a8..09417a6e8fa0c9ee35c59bcefc8803e5d2643c08 100644 (file)
@@ -1,3 +1,8 @@
+Sun Jul 19 08:23:53 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * cplus-dem.c (demangle_nested_args): Make function definition
+       static to match the prototype.
+
 Fri Jul 17 14:58:44 1998  Richard Henderson  <rth@cygnus.com>
 
        * alloca.c: Respect USE_C_ALLOCA.
index 62a7b4ec4ed3567ad0105c7231e579ebd66e113c..b68fc6ffc19bc69a6c106e8f52695a6ee18023e0 100644 (file)
@@ -3350,7 +3350,7 @@ demangle_args (work, mangled, declp)
 /* Like demangle_args, but for demangling the argument lists of function
    and method pointers or references, not top-level declarations.  */
 
-int
+static int
 demangle_nested_args (work, mangled, declp)
      struct work_stuff *work;
      const char **mangled;
index 4d3ec6c27a0144a50201b249013fa0417ce2728c..cab8f7402c900f7776932d29171ebee0385d72d9 100644 (file)
@@ -1,3 +1,8 @@
+Sun Jul 19 08:23:17 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * cplus-dem.c (demangle_nested_args): Make function definition
+       static to match the prototype.
+
 1998-07-13  Mark Mitchell  <mark@markmitchell.com>
 
        * cplus-dem.c: Incorporate changes from GCC version not present in
index 62a7b4ec4ed3567ad0105c7231e579ebd66e113c..b68fc6ffc19bc69a6c106e8f52695a6ee18023e0 100644 (file)
@@ -3350,7 +3350,7 @@ demangle_args (work, mangled, declp)
 /* Like demangle_args, but for demangling the argument lists of function
    and method pointers or references, not top-level declarations.  */
 
-int
+static int
 demangle_nested_args (work, mangled, declp)
      struct work_stuff *work;
      const char **mangled;