summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHeath Dutton🕴️ <heathdutton@gmail.com>2026-01-10 22:28:07 -0500
committerNobuyoshi Nakada <nobu.nakada@gmail.com>2026-01-11 21:06:51 +0900
commit3363861a5af679e7027bdd744fc05d7a797ba33c (patch)
treeedda8fbab4ae66689f38a110f25de408eef66618 /include
parent73be9992e93072be803ffd5173e29dcf597e04ef (diff)
Remove RUBY_API_VERSION check in cxxanyargs.hpp
The version check used undefined macros, causing -Wundef warnings. The conditional is no longer needed as Ruby is past version 3.1.
Diffstat (limited to 'include')
-rw-r--r--include/ruby/backward/cxxanyargs.hpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/ruby/backward/cxxanyargs.hpp b/include/ruby/backward/cxxanyargs.hpp
index d37495dd94..0ca2745c20 100644
--- a/include/ruby/backward/cxxanyargs.hpp
+++ b/include/ruby/backward/cxxanyargs.hpp
@@ -510,9 +510,7 @@ struct driver {
* this writing the version is 2.8. Let's warn this later, some time
* during 3.x. Hopefully codes in old (ANYARGS-ed) format should be
* less than now. */
-#if (RUBY_API_VERSION_MAJOR * 100 + RUBY_API_VERSION_MINOR) >= 301
RUBY_CXX_DEPRECATED("use of ANYARGS is deprecated")
-#endif
/// @copydoc define(VALUE klass, T mid, U func)
/// @deprecated Pass correctly typed function instead.
static inline void