diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-22 05:46:35 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-22 05:46:35 +0000 |
commit | 258304056c2e20f416a93b8df9d7eb2ae52ddd49 (patch) | |
tree | f83a23eb4104d0dc33381fd8a8b7c55683da156a | |
parent | 77d71bdba925ab1eb35a171ab48bdc20de4d1417 (diff) | |
download | gcc-258304056c2e20f416a93b8df9d7eb2ae52ddd49.tar.gz |
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'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20652 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/config/mips/mips.c | 2 | ||||
-rw-r--r-- | gcc/cpplib.c | 2 | ||||
-rw-r--r-- | gcc/objc/objc-act.c | 4 | ||||
-rw-r--r-- | gcc/optabs.c | 1 | ||||
-rw-r--r-- | gcc/regmove.c | 1 |
6 files changed, 16 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 99b22c7a622..5248b2fb881 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index e9ae838f1d2..8b20fc59499 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -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. */ diff --git a/gcc/cpplib.c b/gcc/cpplib.c index e29de4a2ab5..0d71490d544 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -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 diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 9f403711909..4afc08e27df 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -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 () diff --git a/gcc/optabs.c b/gcc/optabs.c index aaa6791ac48..501f92f6299 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -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; diff --git a/gcc/regmove.c b/gcc/regmove.c index cb26dd9b638..158a69585e5 100644 --- a/gcc/regmove.c +++ b/gcc/regmove.c @@ -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; |