diff options
author | 卜部昌平 <[email protected]> | 2021-09-09 14:24:09 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2021-09-10 20:00:06 +0900 |
commit | c39dd708b5f59766ce75c88e92d92ebcaa1df341 (patch) | |
tree | 73764cbe2ed3a9bfbbd9e4cdb57da3c5e40e052a /include/ruby | |
parent | 6522b51ce5a878989766875d049e38daa0d0b9bc (diff) |
suppress GCC's -Wmissing-attribute
I was not aware of this because I use clang these days.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4815
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/internal/intern/string.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/internal/intern/string.h b/include/ruby/internal/intern/string.h index 1cb33a6441..0e2e6d6af7 100644 --- a/include/ruby/internal/intern/string.h +++ b/include/ruby/internal/intern/string.h @@ -553,6 +553,7 @@ VALUE rb_str_buf_append(VALUE dst, VALUE src); /** @alias{rb_str_cat} */ VALUE rb_str_buf_cat(VALUE, const char*, long); +RBIMPL_ATTR_NONNULL(()) /** @alias{rb_str_cat_cstr} */ VALUE rb_str_buf_cat2(VALUE, const char*); @@ -888,6 +889,7 @@ RBIMPL_ATTR_NONNULL(()) */ VALUE rb_str_cat_cstr(VALUE dst, const char *src); +RBIMPL_ATTR_NONNULL(()) /** @alias{rb_str_cat_cstr} */ VALUE rb_str_cat2(VALUE, const char*); |