mirror of
https://github.com/ipxe/ipxe
synced 2025-12-30 22:08:48 +03:00
[build] Enable warnings when building utilities
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -56,18 +56,6 @@ static void * xmalloc ( size_t len ) {
|
||||
return ptr;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get file size
|
||||
*
|
||||
* @v file File
|
||||
* @v len File size
|
||||
*/
|
||||
static size_t file_size ( FILE *file ) {
|
||||
ssize_t len;
|
||||
|
||||
return len;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read information from PE headers
|
||||
*
|
||||
@@ -239,15 +227,15 @@ static int parse_options ( const int argc, char **argv,
|
||||
}
|
||||
|
||||
int main ( int argc, char **argv ) {
|
||||
struct options opts = {
|
||||
};
|
||||
unsigned int infile_index;
|
||||
struct options opts;
|
||||
int infile_index;
|
||||
const char *infile_name;
|
||||
const char *outfile_name;
|
||||
FILE *infile;
|
||||
FILE *outfile;
|
||||
|
||||
/* Parse command-line arguments */
|
||||
memset ( &opts, 0, sizeof ( opts ) );
|
||||
infile_index = parse_options ( argc, argv, &opts );
|
||||
if ( argc != ( infile_index + 2 ) ) {
|
||||
print_help ( argv[0] );
|
||||
|
||||
Reference in New Issue
Block a user