aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-07-20 15:42:59 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-07-20 15:43:42 +0900
commit81fc3becc7b883571e5c716f4fdc490d107ad990 (patch)
tree697ae8dad6f5adcd65a37d0939f585c599b913ad /file.c
parent1392b821b99dacb4d4da5081640cfe7a4fb866f4 (diff)
downloadruby-81fc3becc7b883571e5c716f4fdc490d107ad990.tar.gz
file.c: add a NORETURN declaration for statx_notimplement
clang complains the lack.
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/file.c b/file.c
index f8df0f6e43..0742c52d66 100644
--- a/file.c
+++ b/file.c
@@ -1222,6 +1222,8 @@ rb_statx(VALUE file, struct statx *stx, unsigned int mask)
# define statx_has_birthtime(st) ((st)->stx_mask & STATX_BTIME)
+NORETURN(static void statx_notimplement(const char *field_name));
+
/* rb_notimplement() shows "function is unimplemented on this machine".
It is not applicable to statx which behavior depends on the filesystem. */
static void