From: Andreas Jaeger Date: Mon, 24 Sep 2001 06:07:52 +0000 (+0000) Subject: * nlmconv.c: Fix warnings about unused attributes and function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d50f91e2820da74b8f47ebaf2f327d72f9657c2;p=binutils-gdb.git * nlmconv.c: Fix warnings about unused attributes and function prototypes. * strings.c: Add prototype for get_char. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 15f90674184..1176579a74e 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,10 @@ +2001-09-24 Andreas Jaeger + + * nlmconv.c: Fix warnings about unused attributes and function + prototypes. + + * strings.c: Add prototype for get_char. + 2000-09-19 H.J. Lu * doc/Makefile.am ($(DEMANGLER_NAME).1): Try cxxfilt.man and diff --git a/binutils/nlmconv.c b/binutils/nlmconv.c index 64284da94d5..8cb4c814c74 100644 --- a/binutils/nlmconv.c +++ b/binutils/nlmconv.c @@ -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; diff --git a/binutils/strings.c b/binutils/strings.c index c6cf10ddca6..dec77dfc20d 100644 --- a/binutils/strings.c +++ b/binutils/strings.c @@ -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)