* coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to

silence warning.
	* coffgen.c (coff_print_symbol): Fix warnings.
	(coff_find_nearest_line): Likewise.
	* cofflink.c (_bfd_coff_link_input_bfd): Likewise.
	* coff-alpha.c (alpha_convert_external_reloc): Likewise.
	* format.c (bfd_check_format_matches): Likewise.
	(bfd_set_format): Likewise.
	* coff-ia64.c: Add missing prototypes.
	* elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
	signed to silence warnings.
	(elf64_alpha_relocate_section): Likewise.
	(elf64_alpha_find_reloc_at_ofs): Fix warnings.
	(elf64_alpha_add_symbol_hook): Likewise.
	(elf64_alpha_final_link): Likewise.
	(elf64_alpha_relax_section): Remove redundant assign to info.gotent.
	(elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
	(elf64_alpha_size_got_sections): Likewise.
	* elfxx-ia64.c: Add missing prototypes.
	(elfNN_ia64_relocate_section): Fix warning.
	(elfNN_ia64_unwind_entry_compare): Make params const.
This commit is contained in:
Alan Modra
2001-08-17 08:57:42 +00:00
parent 8fc3479902
commit cea4409c0f
8 changed files with 61 additions and 20 deletions

View File

@@ -125,8 +125,7 @@ bfd_check_format_matches (abfd, format, matching)
int ar_match_index;
if (!bfd_read_p (abfd)
|| abfd->format < bfd_unknown
|| abfd->format >= bfd_type_end)
|| (unsigned int) abfd->format >= (unsigned int) bfd_type_end)
{
bfd_set_error (bfd_error_invalid_operation);
return false;
@@ -348,8 +347,7 @@ bfd_set_format (abfd, format)
bfd_format format;
{
if (bfd_read_p (abfd)
|| abfd->format < bfd_unknown
|| abfd->format >= bfd_type_end)
|| (unsigned int) abfd->format >= (unsigned int) bfd_type_end)
{
bfd_set_error (bfd_error_invalid_operation);
return false;