* nlmconv.c: Fix warnings about unused attributes and function

prototypes.

	* strings.c: Add prototype for get_char.
This commit is contained in:
Andreas Jaeger 2001-09-24 06:07:52 +00:00
parent f51e552e0e
commit 1d50f91e28
3 changed files with 19 additions and 10 deletions

View file

@ -1,3 +1,10 @@
2001-09-24 Andreas Jaeger <aj@suse.de>
* nlmconv.c: Fix warnings about unused attributes and function
prototypes.
* strings.c: Add prototype for get_char.
2000-09-19 H.J. Lu <hjl@gnu.org>
* doc/Makefile.am ($(DEMANGLER_NAME).1): Try cxxfilt.man and

View file

@ -56,7 +56,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* If strerror is just a macro, we want to use the one from libiberty
since it will handle undefined values. */
#undef strerror
extern char *strerror ();
extern char *strerror PARAMS ((int));
#ifndef localtime
extern struct tm *localtime ();
@ -1129,7 +1129,7 @@ static const char *
select_output_format (arch, mach, bigendian)
enum bfd_architecture arch;
unsigned long mach;
boolean bigendian;
boolean bigendian ATTRIBUTE_UNUSED;
{
switch (arch)
{
@ -1162,7 +1162,7 @@ select_output_format (arch, mach, bigendian)
static void
setup_sections (inbfd, insec, data_ptr)
bfd *inbfd;
bfd *inbfd ATTRIBUTE_UNUSED;
asection *insec;
PTR data_ptr;
{
@ -1386,12 +1386,12 @@ mangle_relocs (outbfd, insec, relocs_ptr, reloc_count_ptr, contents,
static void
default_mangle_relocs (outbfd, insec, relocs_ptr, reloc_count_ptr, contents,
contents_size)
bfd *outbfd;
bfd *outbfd ATTRIBUTE_UNUSED;
asection *insec;
arelent ***relocs_ptr;
long *reloc_count_ptr;
char *contents;
bfd_size_type contents_size;
char *contents ATTRIBUTE_UNUSED;
bfd_size_type contents_size ATTRIBUTE_UNUSED;
{
if (insec->output_offset != 0)
{
@ -1595,8 +1595,8 @@ alpha_mangle_relocs (outbfd, insec, relocs_ptr, reloc_count_ptr, contents,
asection *insec;
register arelent ***relocs_ptr;
long *reloc_count_ptr;
char *contents;
bfd_size_type contents_size;
char *contents ATTRIBUTE_UNUSED;
bfd_size_type contents_size ATTRIBUTE_UNUSED;
{
long old_reloc_count;
arelent **old_relocs;
@ -1728,7 +1728,7 @@ static bfd_size_type powerpc_initial_got_size;
static void
powerpc_build_stubs (inbfd, outbfd, symbols_ptr, symcount_ptr)
bfd *inbfd;
bfd *outbfd;
bfd *outbfd ATTRIBUTE_UNUSED;
asymbol ***symbols_ptr;
long *symcount_ptr;
{
@ -1917,7 +1917,7 @@ powerpc_mangle_relocs (outbfd, insec, relocs_ptr, reloc_count_ptr, contents,
register arelent ***relocs_ptr;
long *reloc_count_ptr;
char *contents;
bfd_size_type contents_size;
bfd_size_type contents_size ATTRIBUTE_UNUSED;
{
reloc_howto_type *toc_howto;
long reloc_count;

View file

@ -136,6 +136,8 @@ static void print_strings PARAMS ((const char *filename, FILE *stream,
file_ptr address, int stop_point,
int magiccount, char *magic));
static void usage PARAMS ((FILE *stream, int status));
static long get_char PARAMS ((FILE *stream, file_ptr *address,
int *magiccount, char **magic));
int
main (argc, argv)