ruby-changes:66268
From: Nobuyoshi <ko1@a...>
Date: Wed, 19 May 2021 10:39:00 +0900 (JST)
Subject: [ruby-changes:66268] 1d170fdc6d (master): ext/json/parser/parser.h: Add fallback MAYBE_UNUSED
https://git.ruby-lang.org/ruby.git/commit/?id=1d170fdc6d From 1d170fdc6d0af128c9e5ea2d6082790d5885a4ae Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 19 May 2021 10:16:22 +0900 Subject: ext/json/parser/parser.h: Add fallback MAYBE_UNUSED https://github.com/flori/json/commit/e2ad91fc2094d3cc2f76adc6c55d420cd06f34d8 --- ext/json/parser/parser.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/json/parser/parser.h b/ext/json/parser/parser.h index 0992bbf..92ed3fd 100644 --- a/ext/json/parser/parser.h +++ b/ext/json/parser/parser.h @@ -13,6 +13,10 @@ https://github.com/ruby/ruby/blob/trunk/ext/json/parser/parser.h#L13 #include "st.h" #endif +#ifndef MAYBE_UNUSED +# define MAYBE_UNUSED(x) x +#endif + #define option_given_p(opts, key) RTEST(rb_funcall(opts, i_key_p, 1, key)) /* unicode */ -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/