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:
Aaron Jones 2017-07-31 05:14:15 +00:00
parent bd62a802f9
commit 8c8a219e71
No known key found for this signature in database
GPG key ID: 8AF0737488AB3012

View file

@ -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':