This is the mail archive of the gdb-patches@sourceware.org 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]

[commit] Fix warning in hpread.c (unnecessary extern)


Hello,

While fixing a compilation failure in hpread.c, I noticed that there
was also a warning. The warning was about hpread_start_psymtab being
defined but not used. Going back a bit in the history of this code,
it turns out that the code in hpread.c used to be split in several
files, and was then later consolidated in this one file by Elena
in 2002.

It turns out that a local extern was probably needed at the time,
and became unnecessary after the consolidation. But it looks like
our compiler thinks that the local extern hides our routine, and
thus causes the compiler to think that our routine is not used.

Fixes thusly.

2007-01-04  Joel Brobecker  <brobecker@adacore.com>

        * hpread.c (hpread_start_psymtab): Remove unnecessary extern.

Tested on hppa-hpux11, no regression.
Checked in as obvious.

-- 
Joel

Attachment: hpread.diff
Description: Text document


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