summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-18 11:34:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-18 11:34:36 +0000
commit37f0d53290f331f9db83c9450d788ca005e8d636 (patch)
tree9149040573e37afd2d95eb351fca1612a60f052c /ext
parent9e746a3518d5a9af3aca1a00e73ab555fa73ebe3 (diff)
marked as NORETURN
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/dbm/dbm.c2
-rw-r--r--ext/gdbm/gdbm.c4
-rw-r--r--ext/sdbm/init.c2
3 files changed, 8 insertions, 0 deletions
diff --git a/ext/dbm/dbm.c b/ext/dbm/dbm.c
index 4ac6898..76c6efa 100644
--- a/ext/dbm/dbm.c
+++ b/ext/dbm/dbm.c
@@ -39,6 +39,8 @@ struct dbmdata {
DBM *di_dbm;
};
+NORETURN(static void closed_dbm(void));
+
static void
closed_dbm(void)
{
diff --git a/ext/gdbm/gdbm.c b/ext/gdbm/gdbm.c
index 85e2b33..05eb450 100644
--- a/ext/gdbm/gdbm.c
+++ b/ext/gdbm/gdbm.c
@@ -83,6 +83,10 @@ static VALUE rb_cGDBM, rb_eGDBMError, rb_eGDBMFatalError;
#define MY_BLOCK_SIZE (2048)
#define MY_FATAL_FUNC rb_gdbm_fatal
+
+NORETURN(static void rb_gdbm_fatal(const char *msg));
+NORETURN(static void closed_dbm(void));
+
static void
rb_gdbm_fatal(const char *msg)
{
diff --git a/ext/sdbm/init.c b/ext/sdbm/init.c
index f28eeb2..42292b9 100644
--- a/ext/sdbm/init.c
+++ b/ext/sdbm/init.c
@@ -71,6 +71,8 @@ struct dbmdata {
DBM *di_dbm;
};
+NORETURN(static void closed_sdbm(void));
+
static void
closed_sdbm(void)
{