diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1998-06-22 05:46:35 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1998-06-22 05:46:35 +0000 |
commit | b3fb0b5e507318e1e89d170acf5ac63e8bd63c80 (patch) | |
tree | f83a23eb4104d0dc33381fd8a8b7c55683da156a /gcc | |
parent | e016950d0c095ffdb36c918c7965148e344ca617 (diff) | |
download | gcc-b3fb0b5e507318e1e89d170acf5ac63e8bd63c80.zip gcc-b3fb0b5e507318e1e89d170acf5ac63e8bd63c80.tar.gz gcc-b3fb0b5e507318e1e89d170acf5ac63e8bd63c80.tar.bz2 |
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
Diffstat (limited to 'gcc')
-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 99b22c7..5248b2f 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 e9ae838..8b20fc5 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 e29de4a..0d71490 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 9f40371..4afc08e 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 aaa6791..501f92f 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 cb26dd9..158a695 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; |