This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Squish some warnings
- To: gcc-patches at gcc dot gnu dot org
- Subject: Squish some warnings
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Sat, 12 May 2001 10:45:43 +0100
These were easy to squash. Others would confuse the logic, so I've
left them untouched.
Bootstrapped and made check x86 Linux. OK to commit for mainline?
Neil.
* dwarfout.c (dwarfout_init): Add cast.
* sched-deps.c (sched_analyze_insn): Remove unused vars.
* unwind-dw2-fde.c (_Unwind_Find_FDE): Flag unused parameter so.
cp:
* method.c (build_mangled_C99_name): Remove unused prototype.
Index: dwarfout.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dwarfout.c,v
retrieving revision 1.83
diff -u -p -r1.83 dwarfout.c
--- dwarfout.c 2001/04/25 22:27:04 1.83
+++ dwarfout.c 2001/05/11 23:55:37
@@ -5806,7 +5806,7 @@ dwarfout_init (asm_out_file, main_input_
fputc ('\n', asm_out_file);
ASM_OUTPUT_PUSH_SECTION (asm_out_file, DEBUG_SECTION);
ASM_OUTPUT_LABEL (asm_out_file, DEBUG_BEGIN_LABEL);
- output_die (output_compile_unit_die, main_input_filename);
+ output_die (output_compile_unit_die, (void *) main_input_filename);
ASM_OUTPUT_POP_SECTION (asm_out_file);
fputc ('\n', asm_out_file);
Index: sched-deps.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/sched-deps.c,v
retrieving revision 1.12
diff -u -p -r1.12 sched-deps.c
--- sched-deps.c 2001/04/05 11:55:22 1.12
+++ sched-deps.c 2001/05/11 23:55:41
@@ -1095,7 +1095,7 @@ sched_analyze_insn (deps, x, insn, loop_
/* Add dependencies if a scheduling barrier was found. */
if (schedule_barrier_found)
{
- rtx u, pending, pending_mem;
+ rtx u;
for (i = 0; i < deps->max_reg; i++)
{
Index: unwind-dw2-fde.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/unwind-dw2-fde.c,v
retrieving revision 1.1
diff -u -p -r1.1 unwind-dw2-fde.c
--- unwind-dw2-fde.c 2001/03/28 11:04:07 1.1
+++ unwind-dw2-fde.c 2001/05/11 23:55:43
@@ -469,7 +469,7 @@ frame_init (struct object* ob)
}
fde *
-_Unwind_Find_FDE (void *pc, struct dwarf_eh_bases *bases)
+_Unwind_Find_FDE (void *pc, struct dwarf_eh_bases *bases ATTRIBUTE_UNUSED)
{
struct object *ob;
size_t lo, hi;
Index: cp/method.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/method.c,v
retrieving revision 1.201
diff -u -p -r1.201 method.c
--- method.c 2001/04/27 05:08:39 1.201
+++ method.c 2001/05/11 23:55:48
@@ -63,9 +63,6 @@ struct pending_inline *pending_inlines;
static void do_build_assign_ref PARAMS ((tree));
static void do_build_copy_constructor PARAMS ((tree));
-#if HOST_BITS_PER_WIDE_INT >= 64
-static void build_mangled_C99_name PARAMS ((int));
-#endif
static tree synthesize_exception_spec PARAMS ((tree, tree (*) (tree, void *), void *));
static tree locate_dtor PARAMS ((tree, void *));
static tree locate_ctor PARAMS ((tree, void *));