diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-10-29 12:12:07 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2019-10-29 12:12:07 +0900 |
commit | 54eb51d72bc43f90b595f0d7ffb5069ebf1a56d9 () | |
tree | e18b02dca0cd1c533fe1683e8b2ea117b012853b | |
parent | b86e5c9fec9d9ea0f9c70d9b20456680607399b3 (diff) |
Check for nonnull attribute in configure
-rw-r--r-- | configure.ac | 5 | ||||
-rw-r--r-- | internal.h | 8 |
2 files changed, 9 insertions, 4 deletions
@@ -1495,6 +1495,11 @@ done AS_IF([test "$rb_cv_func_exported" != no], [ AC_DEFINE_UNQUOTED(RUBY_FUNC_EXPORTED, [$rb_cv_func_exported extern]) ]) RUBY_APPEND_OPTION(XCFLAGS, -DRUBY_EXPORT) @@ -2387,16 +2387,16 @@ struct rb_call_data { struct rb_call_cache cc; struct rb_call_info ci; }; -VALUE rb_funcallv_with_cc(struct rb_call_data*, VALUE, ID, int, const VALUE*) -#if (defined(__clang__) || GCC_VERSION_SINCE(3, 3, 0)) && defined(__OPTIMIZE__) -__attribute__((__visibility__("default"), __nonnull__(1))) # define rb_funcallv(recv, mid, argc, argv) \ __extension__({ \ static struct rb_call_data rb_funcallv_data = { { 0, }, { 0, }, }; \ rb_funcallv_with_cc(&rb_funcallv_data, recv, mid, argc, argv); \ }) #endif - ; /* miniprelude.c, prelude.c */ void Init_prelude(void); |