ruby-changes:67849
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Fri, 10 Sep 2021 20:02:40 +0900 (JST)
Subject: [ruby-changes:67849] c39dd708b5 (master): suppress GCC's -Wmissing-attribute
https://git.ruby-lang.org/ruby.git/commit/?id=c39dd708b5 From c39dd708b5f59766ce75c88e92d92ebcaa1df341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= <shyouhei@r...> Date: Thu, 9 Sep 2021 14:24:09 +0900 Subject: suppress GCC's -Wmissing-attribute I was not aware of this because I use clang these days. --- include/ruby/internal/intern/string.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/ruby/internal/intern/string.h b/include/ruby/internal/intern/string.h index 1cb33a6..0e2e6d6 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); https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/intern/string.h#L553 /** @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(()) https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/intern/string.h#L889 */ 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*); -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/