This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [obish] -Wunused-function warnings
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: Andrew Cagney <cagney at gnu dot org>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 15 Jan 2004 13:44:20 -0500
- Subject: Re: [obish] -Wunused-function warnings
- References: <400194E8.10201@gnu.org>
Andrew Cagney writes:
> Hello,
>
> Attached is a list of all the -Wunused-function warnings that I'm
> seeing. Since all these functions are unreachable (i.e., dead code), I
> think their removal is pretty obvious.
> src/gdb/dwarf2read.c:615: warning: `dwarf2_unsupported_at_frame_base_complaint' defined but not used
yes
> src/gdb/sh64-tdep.c:835: warning: `sh64_get_gdb_regnum' defined but not used
yes
> src/gdb/stabsread.c:199: warning: `lrs_general_complaint' defined but not used
yes, leftover from live range splitting cleanup.
> src/gdb/stabsread.c:540: warning: `ref_search_value' defined but not used
ditto
> src/gdb/stabsread.c:92: warning: `get_substring' declared `static' but never defined
leftover from cfront cleanup function was deleted but proto is still there.
> src/gdb/symfile.c:208: warning: `compare_symbols' defined but not used
leftover from David's cleanups.
So all ok.
elena