Commit b3fb0b5e by Kaveh R. Ghazi Committed by Kaveh Ghazi

Warning fixes:

        * 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
parent e016950d
...@@ -44,6 +44,16 @@ Mon Jun 22 08:18:46 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> ...@@ -44,6 +44,16 @@ Mon Jun 22 08:18:46 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* varasm.c Include sdbout.h. * varasm.c Include sdbout.h.
(assemble_static_space): Move sometimes-unused variable `rounded' (assemble_static_space): Move sometimes-unused variable `rounded'
into the scope in which it is used. 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> Sun Jun 21 17:05:34 1998 Dave Love <d.love@dl.ac.uk>
......
...@@ -245,7 +245,7 @@ enum mips_abicalls_type mips_abicalls; ...@@ -245,7 +245,7 @@ enum mips_abicalls_type mips_abicalls;
REAL_VALUE_TYPE dfhigh, dflow, sfhigh, sflow; REAL_VALUE_TYPE dfhigh, dflow, sfhigh, sflow;
/* Mode used for saving/restoring general purpose registers. */ /* 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 /* Array giving truth value on whether or not a given hard register
can support a given mode. */ can support a given mode. */
......
...@@ -6643,7 +6643,7 @@ cpp_handle_option (pfile, argc, argv) ...@@ -6643,7 +6643,7 @@ cpp_handle_option (pfile, argc, argv)
push_pending (pfile, "-U", argv[i] + 2); push_pending (pfile, "-U", argv[i] + 2);
else if (i + 1 == argc) 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; return argc;
} }
else else
......
...@@ -192,7 +192,9 @@ static tree generate_protocol_list PROTO((tree)); ...@@ -192,7 +192,9 @@ static tree generate_protocol_list PROTO((tree));
static void generate_forward_declaration_to_string_table PROTO((void)); static void generate_forward_declaration_to_string_table PROTO((void));
static void build_protocol_reference PROTO((tree)); static void build_protocol_reference PROTO((tree));
#if 0
static tree init_selector PROTO((int)); static tree init_selector PROTO((int));
#endif
static tree build_keyword_selector PROTO((tree)); static tree build_keyword_selector PROTO((tree));
static tree synth_id_with_class_suffix PROTO((char *, tree)); static tree synth_id_with_class_suffix PROTO((char *, tree));
...@@ -2057,6 +2059,7 @@ build_msg_pool_reference (offset) ...@@ -2057,6 +2059,7 @@ build_msg_pool_reference (offset)
return expr; return expr;
} }
#if 0
static tree static tree
init_selector (offset) init_selector (offset)
int offset; int offset;
...@@ -2065,6 +2068,7 @@ init_selector (offset) ...@@ -2065,6 +2068,7 @@ init_selector (offset)
TREE_TYPE (expr) = selector_type; TREE_TYPE (expr) = selector_type;
return expr; return expr;
} }
#endif
static void static void
build_selector_translation_table () build_selector_translation_table ()
......
...@@ -4436,7 +4436,6 @@ gen_cond_trap (code, op1, op2, tcode) ...@@ -4436,7 +4436,6 @@ gen_cond_trap (code, op1, op2, tcode)
rtx op1, op2, tcode; rtx op1, op2, tcode;
{ {
enum machine_mode mode = GET_MODE (op1); enum machine_mode mode = GET_MODE (op1);
enum insn_code icode;
if (mode == VOIDmode) if (mode == VOIDmode)
return 0; return 0;
......
...@@ -550,7 +550,6 @@ copy_src_to_dest (insn, src, dest, loop_depth) ...@@ -550,7 +550,6 @@ copy_src_to_dest (insn, src, dest, loop_depth)
rtx move_insn; rtx move_insn;
rtx *p_insn_notes; rtx *p_insn_notes;
rtx *p_move_notes; rtx *p_move_notes;
int i;
int src_regno; int src_regno;
int dest_regno; int dest_regno;
int bb; int bb;
......
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