[RFA] Fix compilation warnings in irix-core.c
Joel Brobecker
brobecker@adacore.com
Tue Mar 29 08:31:00 GMT 2005
Here is what I just checked in:
2005-03-28 Joel Brobecker <brobecker@adacore.com>
* irix-core.c (do_sections): Replace + by | in expression.
(irix_core_core_file_matches_executable_p): Add ATTRIBUTE_UNUSED
to unused parameters to avoid a compiler warning.
Tested on mips-irix by running the GDB testsuite. I got identical
results, as expected.
Next is ISO-ification...
Thanks,
--
Joel
-------------- next part --------------
Index: irix-core.c
===================================================================
RCS file: /cvs/src/src/bfd/irix-core.c,v
retrieving revision 1.12
diff -u -p -r1.12 irix-core.c
--- irix-core.c 24 Jun 2004 04:46:24 -0000 1.12
+++ irix-core.c 29 Mar 2005 04:17:38 -0000
@@ -152,7 +152,7 @@ do_sections (abfd, coreout)
continue;
if (!make_bfd_asection (abfd, secname,
- SEC_ALLOC | SEC_LOAD+SEC_HAS_CONTENTS,
+ SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS,
vmap.v_len, vmap.v_vaddr, vmap.v_offset))
/* Fail. */
return 0;
@@ -288,7 +288,8 @@ irix_core_core_file_failing_signal (abfd
static bfd_boolean
irix_core_core_file_matches_executable_p (core_bfd, exec_bfd)
- bfd *core_bfd, *exec_bfd;
+ bfd *core_bfd ATTRIBUTE_UNUSED;
+ bfd *exec_bfd ATTRIBUTE_UNUSED;
{
return TRUE; /* XXX - FIXME */
}
More information about the Binutils
mailing list