summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2017-10-25 18:32:44 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-10-24 19:24:50 +0900
commit7459a32af3e89ea9990efb4d76bfdc869e480ffe (patch)
tree3faf1fdeabfed9a3d05106fa493e24dfcbbbbe12 /vm_core.h
parente5c2bf55d0c5b71227284a577301b3c48894032e (diff)
suppress warnings for probable NULL dererefences
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5015
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index 8519da8f9e..76d0025613 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -1367,6 +1367,7 @@ vm_assert_env(VALUE obj)
}
#endif
+RBIMPL_ATTR_NONNULL((1))
static inline VALUE
VM_ENV_ENVVAL(const VALUE *ep)
{
@@ -1376,6 +1377,7 @@ VM_ENV_ENVVAL(const VALUE *ep)
return envval;
}
+RBIMPL_ATTR_NONNULL((1))
static inline const rb_env_t *
VM_ENV_ENVVAL_PTR(const VALUE *ep)
{