rb_helper: misc cleanups for compiler warning

helper.c:291:1: warning: function 'rb_helper_loop' could be declared
                with attribute 'noreturn' [-Wmissing-noreturn]
This commit is contained in:
Aaron Jones 2017-07-31 05:33:23 +00:00
parent 7406d7acad
commit 9ca4bd7e0c
No known key found for this signature in database
GPG key ID: 8AF0737488AB3012
2 changed files with 2 additions and 3 deletions

View file

@ -311,8 +311,7 @@ main(int argc, char *argv[])
rsdb_init(db_error_cb); rsdb_init(db_error_cb);
check_schema(); check_schema();
rb_helper_loop(bandb_helper, 0); rb_helper_loop(bandb_helper, 0);
/* UNREACHABLE */
return 0;
} }
static void static void

View file

@ -59,5 +59,5 @@ void rb_helper_write_flush(rb_helper *helper);
void rb_helper_run(rb_helper *helper); void rb_helper_run(rb_helper *helper);
void rb_helper_close(rb_helper *helper); void rb_helper_close(rb_helper *helper);
int rb_helper_read(rb_helper *helper, void *buf, size_t bufsize); int rb_helper_read(rb_helper *helper, void *buf, size_t bufsize);
void rb_helper_loop(rb_helper *helper, long delay); void rb_helper_loop(rb_helper *helper, long delay) __attribute__((noreturn));
#endif #endif