mirror of
https://github.com/ipxe/ipxe
synced 2025-12-28 10:32:52 +03:00
[build] Enable warnings when building utilities
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user