]> gcc.gnu.org Git - gcc.git/commitdiff
Warning fixes:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Mon, 22 Jun 1998 05:46:35 +0000 (05:46 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Mon, 22 Jun 1998 05:46:35 +0000 (05:46 +0000)
        * mips.c (gpr_mode): Don't say `static' twice.
        * cpplib.c (cpp_handle_option): Don't pass unneeded NULL to cpp_fatal.
        * objc/objc-act.c (init_selector): Hide prototype and definition.
        * optabs.c (gen_cond_trap): Remove unused variable `icode'.
        * regmove.c (copy_src_to_dest): Likewise for `i'.

From-SVN: r20652

gcc/ChangeLog
gcc/config/mips/mips.c
gcc/cpplib.c
gcc/objc/objc-act.c
gcc/optabs.c
gcc/regmove.c

index 99b22c7a6224baf025d7f29a1d6a46a64639d14a..5248b2fb8813355d81413edf8a78d8b814ad9b69 100644 (file)
@@ -44,6 +44,16 @@ Mon Jun 22 08:18:46 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
        * varasm.c Include sdbout.h.
        (assemble_static_space): Move sometimes-unused variable `rounded'
        into the scope in which it is used. 
+       
+       * mips.c (gpr_mode): Don't say `static' twice.
+
+       * cpplib.c (cpp_handle_option): Don't pass unneeded NULL to cpp_fatal.
+
+       * objc/objc-act.c (init_selector): Hide prototype and definition.
+
+       * optabs.c (gen_cond_trap): Remove unused variable `icode'.
+       
+       * regmove.c (copy_src_to_dest): Likewise for `i'.
 
 Sun Jun 21 17:05:34 1998  Dave Love  <d.love@dl.ac.uk>
 
index e9ae838f1d2594d2eaef926526816405fc9e84ff..8b20fc594993a8465f966f8482c65d228bb607bc 100644 (file)
@@ -245,7 +245,7 @@ enum mips_abicalls_type mips_abicalls;
 REAL_VALUE_TYPE dfhigh, dflow, sfhigh, sflow;
 
 /* Mode used for saving/restoring general purpose registers.  */
-static static enum machine_mode gpr_mode;
+static enum machine_mode gpr_mode;
 
 /* Array giving truth value on whether or not a given hard register
    can support a given mode.  */
index e29de4a2ab573e8d7979a1ed7fbe7d585a46b7cd..0d71490d544a0cd17fafae2de38b19e8b6f56a81 100644 (file)
@@ -6643,7 +6643,7 @@ cpp_handle_option (pfile, argc, argv)
        push_pending (pfile, "-U", argv[i] + 2);
       else if (i + 1 == argc)
        {
-         cpp_fatal (pfile, "Macro name missing after -U option", NULL);
+         cpp_fatal (pfile, "Macro name missing after -U option");
          return argc;
        }
       else
index 9f40371190920027f679cc31bada8e9205e3deed..4afc08e27df1b14988ab4bc6f853287742bdc24e 100644 (file)
@@ -192,7 +192,9 @@ static tree generate_protocol_list          PROTO((tree));
 static void generate_forward_declaration_to_string_table PROTO((void));
 static void build_protocol_reference           PROTO((tree));
 
+#if 0
 static tree init_selector                      PROTO((int));
+#endif
 static tree build_keyword_selector             PROTO((tree));
 static tree synth_id_with_class_suffix         PROTO((char *, tree));
 
@@ -2057,6 +2059,7 @@ build_msg_pool_reference (offset)
   return expr;
 }
 
+#if 0
 static tree
 init_selector (offset)
      int offset;
@@ -2065,6 +2068,7 @@ init_selector (offset)
   TREE_TYPE (expr) = selector_type;
   return expr;
 }
+#endif
 
 static void
 build_selector_translation_table ()
index aaa6791ac4820f26023fe6f7a5eaad0ebfc0aebb..501f92f62997291642cdd98475ad0630b571e6b4 100644 (file)
@@ -4436,7 +4436,6 @@ gen_cond_trap (code, op1, op2, tcode)
      rtx op1, op2, tcode;
 {
   enum machine_mode mode = GET_MODE (op1);
-  enum insn_code icode;
 
   if (mode == VOIDmode)
     return 0;
index cb26dd9b638174ddffb634f53acda77387a4053a..158a69585e5fbff02807ce59b4d3b2924ee136b9 100644 (file)
@@ -550,7 +550,6 @@ copy_src_to_dest (insn, src, dest, loop_depth)
   rtx move_insn;
   rtx *p_insn_notes;
   rtx *p_move_notes;
-  int i;
   int src_regno;
   int dest_regno;
   int bb;
This page took 0.114138 seconds and 5 git commands to generate.