diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-07-27 22:58:38 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-07-27 22:58:38 +0000 |
commit | 92ce585120b84b1782f7415c41c4ad5ada3652f4 (patch) | |
tree | dfa73436408c157df067daef4bbd540ac33cd7c3 /gcc | |
parent | 944676d78f8fbacae6c32c896d6ec3805fad2323 (diff) | |
download | gcc-92ce585120b84b1782f7415c41c4ad5ada3652f4.tar.gz |
* method.c: Remove prototype for largest_union_member.
* pt.c (determine_specialization): Fix uninitialized warning.
* lex.c (real_yylex): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28302 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-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 43e8986ab8c..27df6bc4d20 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 d1d18a47f37..3d1a837fad0 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 04f7b39ff3a..33a036c20a6 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 ef84f74714a..e5e5d7ef674 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. */ |