Skip to content

Commit 3363861

Browse files
heathduttonnobu
authored andcommitted
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.
1 parent 73be999 commit 3363861

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/ruby/backward/cxxanyargs.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,9 +510,7 @@ struct driver {
510510
* this writing the version is 2.8. Let's warn this later, some time
511511
* during 3.x. Hopefully codes in old (ANYARGS-ed) format should be
512512
* less than now. */
513-
#if (RUBY_API_VERSION_MAJOR * 100 + RUBY_API_VERSION_MINOR) >= 301
514513
RUBY_CXX_DEPRECATED("use of ANYARGS is deprecated")
515-
#endif
516514
/// @copydoc define(VALUE klass, T mid, U func)
517515
/// @deprecated Pass correctly typed function instead.
518516
static inline void

0 commit comments

Comments
 (0)