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:
parent
7406d7acad
commit
9ca4bd7e0c
2 changed files with 2 additions and 3 deletions
|
@ -311,8 +311,7 @@ main(int argc, char *argv[])
|
|||
rsdb_init(db_error_cb);
|
||||
check_schema();
|
||||
rb_helper_loop(bandb_helper, 0);
|
||||
|
||||
return 0;
|
||||
/* UNREACHABLE */
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -59,5 +59,5 @@ void rb_helper_write_flush(rb_helper *helper);
|
|||
void rb_helper_run(rb_helper *helper);
|
||||
void rb_helper_close(rb_helper *helper);
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue