summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-11 00:24:14 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-11 00:40:14 +0900
commit5d430c1b34b6162d4cfbd472fae09e6ea282f3a3 (patch)
tree23b5b2a1e472c04100acabb934cff1a6639ada5b /dir.c
parenta1e1fdca091bdd20ccfd69b682e8f1f6f51fa4f3 (diff)
Added more NORETURN declarations
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index 7860964..5c12cd2 100644
--- a/dir.c
+++ b/dir.c
@@ -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