[前][次][番号順一覧][スレッド一覧]

ruby-changes:56607

From: Yusuke <ko1@a...>
Date: Sat, 20 Jul 2019 15:44:01 +0900 (JST)
Subject: [ruby-changes:56607] Yusuke Endoh: 81fc3becc7 (master): file.c: add a NORETURN declaration for statx_notimplement

https://git.ruby-lang.org/ruby.git/commit/?id=81fc3becc7

From 81fc3becc7b883571e5c716f4fdc490d107ad990 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Sat, 20 Jul 2019 15:42:59 +0900
Subject: file.c: add a NORETURN declaration for statx_notimplement

clang complains the lack.

diff --git a/file.c b/file.c
index f8df0f6..0742c52 100644
--- a/file.c
+++ b/file.c
@@ -1222,6 +1222,8 @@ rb_statx(VALUE file, struct statx *stx, unsigned int mask) https://github.com/ruby/ruby/blob/trunk/file.c#L1222
 
 # 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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]