diff options
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/lex.c | 3 | ||||
-rw-r--r-- | gcc/cp/method.c | 1 | ||||
-rw-r--r-- | gcc/cp/pt.c | 5 |
4 files changed, 10 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 43e8986..27df6bc 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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 diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index d1d18a4..3d1a837 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 04f7b39..33a036c 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 ef84f74..e5e5d7e 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. */ |