]> gcc.gnu.org Git - gcc.git/commitdiff
method.c: Remove prototype for largest_union_member.
authorJason Merrill <jason@yorick.cygnus.com>
Tue, 27 Jul 1999 22:58:38 +0000 (22:58 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 27 Jul 1999 22:58:38 +0000 (18:58 -0400)
* method.c: Remove prototype for largest_union_member.
* pt.c (determine_specialization): Fix uninitialized warning.
* lex.c (real_yylex): Likewise.

From-SVN: r28302

gcc/cp/ChangeLog
gcc/cp/lex.c
gcc/cp/method.c
gcc/cp/pt.c

index 43e8986ab8c2aac3f926b0412b4907a34168299b..27df6bc4d2084446576d8c0a7f472a8a6c3de153 100644 (file)
@@ -1,3 +1,9 @@
+1999-07-27  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * method.c: Remove prototype for largest_union_member.
+       * pt.c (determine_specialization): Fix uninitialized warning.
+       * lex.c (real_yylex): Likewise.
+
 1999-07-27  Mark Mitchell  <mark@codesourcery.com>
 
        * class.c (override_one_vtable): Adjust the use of BINFO_VIRTUALS
index d1d18a47f3762e4106bde58b094d9ecee58c56e6..3d1a837fad013b3fce6e086c7a7c13417e68cd0e 100644 (file)
@@ -4075,7 +4075,8 @@ real_yylex ()
            int spec_long = 0;
            int spec_long_long = 0;
            int spec_imag = 0;
-           int warn, i;
+           int warn = 0;
+           int i;
 
            while (1)
              {
index 04f7b39ff3a4387ba075b7a8a4a2019b119e597b..33a036c20a6d7fcb9bc7baa3936180fec4bf949a 100644 (file)
@@ -71,7 +71,6 @@ static void process_modifiers PROTO((tree));
 static void process_overload_item PROTO((tree,int));
 static void do_build_assign_ref PROTO((tree));
 static void do_build_copy_constructor PROTO((tree));
-static tree largest_union_member PROTO((tree));
 static void build_template_template_parm_names PROTO((tree));
 static void build_template_parm_names PROTO((tree, tree));
 static void build_underscore_int PROTO((int));
index ef84f74714ae1dfbf07344de250525d23c382c45..e5e5d7ef674ee2799bdf0cbc087eb527d0b5042d 100644 (file)
@@ -955,7 +955,6 @@ determine_specialization (template_id, decl, targs_out,
      tree* targs_out;
      int need_member_template;
 {
-  tree fn;
   tree fns;
   tree targs;
   tree explicit_targs;
@@ -979,7 +978,7 @@ determine_specialization (template_id, decl, targs_out,
 
   if (!is_overloaded_fn (fns))
     {
-      cp_error ("`%D' is not a function template", fn);
+      cp_error ("`%D' is not a function template", fns);
       return error_mark_node;
     }
 
@@ -987,7 +986,7 @@ determine_specialization (template_id, decl, targs_out,
     {
       tree tmpl;
 
-      fn = OVL_CURRENT (fns);
+      tree fn = OVL_CURRENT (fns);
 
       if (TREE_CODE (fn) == TEMPLATE_DECL)
        /* DECL might be a specialization of FN.  */
This page took 0.088862 seconds and 5 git commands to generate.