Commit 9dfce8fd by Jason Merrill Committed by Jason Merrill

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
parent a36622c2
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> 1999-07-27 Mark Mitchell <mark@codesourcery.com>
* class.c (override_one_vtable): Adjust the use of BINFO_VIRTUALS * class.c (override_one_vtable): Adjust the use of BINFO_VIRTUALS
......
...@@ -4075,7 +4075,8 @@ real_yylex () ...@@ -4075,7 +4075,8 @@ real_yylex ()
int spec_long = 0; int spec_long = 0;
int spec_long_long = 0; int spec_long_long = 0;
int spec_imag = 0; int spec_imag = 0;
int warn, i; int warn = 0;
int i;
while (1) while (1)
{ {
......
...@@ -71,7 +71,6 @@ static void process_modifiers PROTO((tree)); ...@@ -71,7 +71,6 @@ static void process_modifiers PROTO((tree));
static void process_overload_item PROTO((tree,int)); static void process_overload_item PROTO((tree,int));
static void do_build_assign_ref PROTO((tree)); static void do_build_assign_ref PROTO((tree));
static void do_build_copy_constructor 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_template_parm_names PROTO((tree));
static void build_template_parm_names PROTO((tree, tree)); static void build_template_parm_names PROTO((tree, tree));
static void build_underscore_int PROTO((int)); static void build_underscore_int PROTO((int));
......
...@@ -955,7 +955,6 @@ determine_specialization (template_id, decl, targs_out, ...@@ -955,7 +955,6 @@ determine_specialization (template_id, decl, targs_out,
tree* targs_out; tree* targs_out;
int need_member_template; int need_member_template;
{ {
tree fn;
tree fns; tree fns;
tree targs; tree targs;
tree explicit_targs; tree explicit_targs;
...@@ -979,7 +978,7 @@ determine_specialization (template_id, decl, targs_out, ...@@ -979,7 +978,7 @@ determine_specialization (template_id, decl, targs_out,
if (!is_overloaded_fn (fns)) 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; return error_mark_node;
} }
...@@ -987,7 +986,7 @@ determine_specialization (template_id, decl, targs_out, ...@@ -987,7 +986,7 @@ determine_specialization (template_id, decl, targs_out,
{ {
tree tmpl; tree tmpl;
fn = OVL_CURRENT (fns); tree fn = OVL_CURRENT (fns);
if (TREE_CODE (fn) == TEMPLATE_DECL) if (TREE_CODE (fn) == TEMPLATE_DECL)
/* DECL might be a specialization of FN. */ /* DECL might be a specialization of FN. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment