diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-05-11 00:24:14 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-05-11 00:40:14 +0900 |
commit | 5d430c1b34b6162d4cfbd472fae09e6ea282f3a3 (patch) | |
tree | 23b5b2a1e472c04100acabb934cff1a6639ada5b /dir.c | |
parent | a1e1fdca091bdd20ccfd69b682e8f1f6f51fa4f3 (diff) |
Added more NORETURN declarations
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1966,13 +1966,15 @@ rb_glob_warning(const char *path, VALUE a, const void *enc, int error) } #endif +NORETURN(static VALUE glob_func_error(VALUE val)); + static VALUE glob_func_error(VALUE val) { struct glob_error_args *arg = (struct glob_error_args *)val; VALUE path = rb_enc_str_new_cstr(arg->path, arg->enc); rb_syserr_fail_str(arg->error, path); - return Qnil; + UNREACHABLE_RETURN(Qnil); } static int |