diff options
author | Michael Brown <mcb30@ipxe.org> | 2012-04-10 19:38:54 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2012-04-10 19:38:54 +0100 |
commit | 196751ce95fa6b6566a5b336193681fad3581fd1 (patch) | |
tree | 5f4c47b8b7099513f34f6219abccb437b8656cb9 /src/util/elf2efi.c | |
parent | 96a8c70a0cf4eadad8e306618f76177d0e8ea52d (diff) | |
download | ipxe-196751ce95fa6b6566a5b336193681fad3581fd1.tar.gz |
[build] Enable warnings when building utilities
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/util/elf2efi.c')
-rw-r--r-- | src/util/elf2efi.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/util/elf2efi.c b/src/util/elf2efi.c index e66292966..c8df22e1d 100644 --- a/src/util/elf2efi.c +++ b/src/util/elf2efi.c @@ -459,7 +459,8 @@ static struct pe_section * process_section ( bfd *bfd, * @v rel Relocation entry * @v pe_reltab PE relocation table to fill in */ -static void process_reloc ( bfd *bfd, asection *section, arelent *rel, +static void process_reloc ( bfd *bfd __attribute__ (( unused )), + asection *section, arelent *rel, struct pe_relocs **pe_reltab ) { reloc_howto_type *howto = rel->howto; asymbol *sym = *(rel->sym_ptr_ptr); @@ -637,7 +638,7 @@ static void write_pe_file ( struct pe_header *pe_header, for ( section = pe_sections ; section ; section = section->next ) { if ( fseek ( pe, section->hdr.PointerToRawData, SEEK_SET ) != 0 ) { - eprintf ( "Could not seek to %lx: %s\n", + eprintf ( "Could not seek to %x: %s\n", section->hdr.PointerToRawData, strerror ( errno ) ); exit ( 1 ); @@ -786,7 +787,7 @@ int main ( int argc, char **argv ) { struct options opts = { .subsystem = EFI_IMAGE_SUBSYSTEM_EFI_APPLICATION, }; - unsigned int infile_index; + int infile_index; const char *infile; const char *outfile; |