[前][次][番号順一覧][スレッド一覧]

ruby-changes:74498

From: Kenta <ko1@a...>
Date: Tue, 15 Nov 2022 09:34:43 +0900 (JST)
Subject: [ruby-changes:74498] 3147a3900f (master): [ruby/bigdecimal] Mark some functions MAYBE_UNUSED

https://git.ruby-lang.org/ruby.git/commit/?id=3147a3900f

From 3147a3900f7fc5ee7f763741dcc97f4487de79f4 Mon Sep 17 00:00:00 2001
From: Kenta Murata <mrkn@m...>
Date: Tue, 15 Nov 2022 09:32:53 +0900
Subject: [ruby/bigdecimal] Mark some functions MAYBE_UNUSED

https://github.com/ruby/bigdecimal/commit/d70a4d53e5
---
 ext/bigdecimal/bigdecimal.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index a5b80464d0..c85ef15953 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -217,6 +217,7 @@ rbd_allocate_struct_zero(int sign, size_t const digits, bool limit_precision) https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L217
     return real;
 }
 
+MAYBE_UNUSED(static inline Real * rbd_allocate_struct_zero_limited(int sign, size_t const digits));
 #define NewZeroLimited rbd_allocate_struct_zero_limited
 static inline Real *
 rbd_allocate_struct_zero_limited(int sign, size_t const digits)
@@ -224,6 +225,7 @@ rbd_allocate_struct_zero_limited(int sign, size_t const digits) https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L225
     return rbd_allocate_struct_zero(sign, digits, true);
 }
 
+MAYBE_UNUSED(static inline Real * rbd_allocate_struct_zero_nolimit(int sign, size_t const digits));
 #define NewZeroNolimit rbd_allocate_struct_zero_nolimit
 static inline Real *
 rbd_allocate_struct_zero_nolimit(int sign, size_t const digits)
@@ -242,6 +244,7 @@ rbd_allocate_struct_one(int sign, size_t const digits, bool limit_precision) https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L244
     return real;
 }
 
+MAYBE_UNUSED(static inline Real * rbd_allocate_struct_one_limited(int sign, size_t const digits));
 #define NewOneLimited rbd_allocate_struct_one_limited
 static inline Real *
 rbd_allocate_struct_one_limited(int sign, size_t const digits)
@@ -249,6 +252,7 @@ rbd_allocate_struct_one_limited(int sign, size_t const digits) https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L252
     return rbd_allocate_struct_one(sign, digits, true);
 }
 
+MAYBE_UNUSED(static inline Real * rbd_allocate_struct_one_nolimit(int sign, size_t const digits));
 #define NewOneNolimit rbd_allocate_struct_one_nolimit
 static inline Real *
 rbd_allocate_struct_one_nolimit(int sign, size_t const digits)
@@ -320,6 +324,7 @@ rbd_allocate_struct_zero_wrap_klass(VALUE klass, int sign, size_t const digits, https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L324
     return real;
 }
 
+MAYBE_UNUSED(static inline Real * rbd_allocate_struct_zero_limited_wrap(int sign, size_t const digits));
 #define NewZeroWrapLimited rbd_allocate_struct_zero_limited_wrap
 static inline Real *
 rbd_allocate_struct_zero_limited_wrap(int sign, size_t const digits)
@@ -327,6 +332,7 @@ rbd_allocate_struct_zero_limited_wrap(int sign, size_t const digits) https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L332
     return rbd_allocate_struct_zero_wrap_klass(rb_cBigDecimal, sign, digits, true);
 }
 
+MAYBE_UNUSED(static inline Real * rbd_allocate_struct_zero_nolimit_wrap(int sign, size_t const digits));
 #define NewZeroWrapNolimit rbd_allocate_struct_zero_nolimit_wrap
 static inline Real *
 rbd_allocate_struct_zero_nolimit_wrap(int sign, size_t const digits)
@@ -345,6 +351,7 @@ rbd_allocate_struct_one_wrap_klass(VALUE klass, int sign, size_t const digits, b https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L351
     return real;
 }
 
+MAYBE_UNUSED(static inline Real * rbd_allocate_struct_one_limited_wrap(int sign, size_t const digits));
 #define NewOneWrapLimited rbd_allocate_struct_one_limited_wrap
 static inline Real *
 rbd_allocate_struct_one_limited_wrap(int sign, size_t const digits)
@@ -352,6 +359,7 @@ rbd_allocate_struct_one_limited_wrap(int sign, size_t const digits) https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L359
     return rbd_allocate_struct_one_wrap_klass(rb_cBigDecimal, sign, digits, true);
 }
 
+MAYBE_UNUSED(static inline Real * rbd_allocate_struct_one_nolimit_wrap(int sign, size_t const digits));
 #define NewOneWrapNolimit rbd_allocate_struct_one_nolimit_wrap
 static inline Real *
 rbd_allocate_struct_one_nolimit_wrap(int sign, size_t const digits)
-- 
cgit v1.2.3


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]