From: Jason Merrill Date: Tue, 27 Jul 1999 22:58:38 +0000 (+0000) Subject: method.c: Remove prototype for largest_union_member. X-Git-Tag: prereleases/libstdc++-2.92~11488 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9dfce8fded6446a06a88394fe967d7250b9253d7;p=thirdparty%2Fgcc.git method.c: Remove prototype for largest_union_member. * method.c: Remove prototype for largest_union_member. * pt.c (determine_specialization): Fix uninitialized warning. * lex.c (real_yylex): Likewise. From-SVN: r28302 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 43e8986ab8c2..27df6bc4d208 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +1999-07-27 Jason Merrill + + * 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 * class.c (override_one_vtable): Adjust the use of BINFO_VIRTUALS diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index d1d18a47f376..3d1a837fad01 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -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) { diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 04f7b39ff3a4..33a036c20a6d 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -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)); diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index ef84f74714ae..e5e5d7ef674e 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -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. */