This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [obish] -Wunused-function warnings



src/gdb/breakpoint.c:6009: warning: `ep_parse_optional_filename' defined but not used


Did you test on a target without SOLIB_ADD?  These are conditionally
used.  Things to do: finish multi-arching solibs...

The list comes from building all the cross targets listed in the MAINTAINERS file. The problem of #ifdef code is one reason for posting this first - if things are cleaned up a little the removal task becomes much easier (a search of the GDB tree will be needed for each apparently unused function).


I don't know where solibs are at.

src/gdb/infrun.c:65: warning: `set_follow_fork_mode_command' declared `static' but never defined


Yeah, dead. Probably since add_set_enum_cmd.


src/gdb/mips-tdep.c:661: warning: `mips_convert_register_p' defined but not used
src/gdb/mips-tdep.c:672: warning: `mips_register_to_value' defined but not used
src/gdb/mips-tdep.c:680: warning: `mips_value_to_register' defined but not used


Ya!

Actually, I suspect that they are needed - never got hooked up when merged from a branch :-( My MIPS boxes are finally back up so I can check this.


Andrew



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]