mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2025-01-19 15:53:24 +08:00
genpeimg.c (pass_args): add a /* fallthru */ comment in the switch
after show_usage() to avoid -Wimplicit-fallthrough (show_usage): mark the function with noreturn attribute.
This commit is contained in:
parent
b33fcd03af
commit
f9f2bd0641
@ -28,7 +28,7 @@ unsigned short mask_pe_opt_hdr_dll_chara = 0xffff;
|
||||
int dump_information = 0;
|
||||
static char *file_name = NULL;
|
||||
|
||||
static void
|
||||
static void __attribute__((noreturn))
|
||||
show_usage (void)
|
||||
{
|
||||
fprintf (stderr, "genpeimg [options] files...\n");
|
||||
@ -204,6 +204,7 @@ pass_args (int argc, char **argv)
|
||||
case 'h':
|
||||
if (h[2] == 0)
|
||||
show_usage ();
|
||||
/* fallthru */
|
||||
default:
|
||||
error_point:
|
||||
fprintf (stderr, "Unknown option ,%s'\n", h);
|
||||
|
Loading…
Reference in New Issue
Block a user