From 3363861a5af679e7027bdd744fc05d7a797ba33c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Heath=20Dutton=F0=9F=95=B4=EF=B8=8F?= Date: Sat, 10 Jan 2026 22:28:07 -0500 Subject: 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. --- include/ruby/backward/cxxanyargs.hpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'include/ruby/backward') 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 -- cgit v1.2.3