src/bandbi.c: misc cleanup for compiler warning
bandbi.c:389:1: warning: function 'bandb_handle_failure' could be declared with attribute 'noreturn' [-Wmissing-noreturn]
This commit is contained in:
parent
bd62a802f9
commit
8c8a219e71
1 changed files with 2 additions and 2 deletions
|
@ -384,7 +384,7 @@ bandb_handle_finish(void)
|
|||
check_banned_lines();
|
||||
}
|
||||
|
||||
static void
|
||||
static void __attribute__((noreturn))
|
||||
bandb_handle_failure(rb_helper *helper, char **parv, int parc)
|
||||
{
|
||||
if(server_state_foreground)
|
||||
|
@ -413,7 +413,7 @@ bandb_parse(rb_helper *helper)
|
|||
{
|
||||
case '!':
|
||||
bandb_handle_failure(helper, parv, parc);
|
||||
break;
|
||||
/* UNREACHABLE */
|
||||
case 'K':
|
||||
case 'D':
|
||||
case 'X':
|
||||
|
|
Loading…
Reference in a new issue