This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

(C++) warning cleanup patch


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.

Index: method.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/method.c,v
retrieving revision 1.104
diff -c -p -r1.104 method.c
*** method.c	1999/07/21 08:52:14	1.104
--- method.c	1999/07/27 22:56:41
*************** static void process_modifiers PROTO((tre
*** 71,77 ****
  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));
--- 71,76 ----
Index: pt.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/pt.c,v
retrieving revision 1.314
diff -c -p -r1.314 pt.c
*** pt.c	1999/07/26 08:18:18	1.314
--- pt.c	1999/07/27 22:56:42
*************** determine_specialization (template_id, d
*** 955,961 ****
       tree* targs_out;
       int need_member_template;
  {
-   tree fn;
    tree fns;
    tree targs;
    tree explicit_targs;
--- 955,960 ----
*************** determine_specialization (template_id, d
*** 979,985 ****
  
    if (!is_overloaded_fn (fns))
      {
!       cp_error ("`%D' is not a function template", fn);
        return error_mark_node;
      }
  
--- 978,984 ----
  
    if (!is_overloaded_fn (fns))
      {
!       cp_error ("`%D' is not a function template", fns);
        return error_mark_node;
      }
  
*************** determine_specialization (template_id, d
*** 987,993 ****
      {
        tree tmpl;
  
!       fn = OVL_CURRENT (fns);
  
        if (TREE_CODE (fn) == TEMPLATE_DECL)
  	/* DECL might be a specialization of FN.  */
--- 986,992 ----
      {
        tree tmpl;
  
!       tree fn = OVL_CURRENT (fns);
  
        if (TREE_CODE (fn) == TEMPLATE_DECL)
  	/* DECL might be a specialization of FN.  */
Index: lex.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/lex.c,v
retrieving revision 1.124
diff -c -p -r1.124 lex.c
*** lex.c	1999/07/26 22:23:59	1.124
--- lex.c	1999/07/27 22:56:42
*************** real_yylex ()
*** 4075,4081 ****
  	    int spec_long = 0;
  	    int spec_long_long = 0;
  	    int spec_imag = 0;
! 	    int warn, i;
  
  	    while (1)
  	      {
--- 4075,4082 ----
  	    int spec_long = 0;
  	    int spec_long_long = 0;
  	    int spec_imag = 0;
! 	    int warn = 0;
! 	    int i;
  
  	    while (1)
  	      {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]