Skip to content

Commit a837ec0

Browse files
committed
Drop a workaround for CentOS 6
`RUBY_CXX_DEPRECATED` is overridden using `RBIMPL_ATTR_DEPRECATED` in include/ruby/backward/2/attributes.h already.
1 parent d318dc6 commit a837ec0

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

configure.ac

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,21 +1680,6 @@ AS_IF([test "$rb_cv_func_weak" != x], [
16801680
AC_DEFINE(HAVE_FUNC_WEAK)
16811681
])
16821682

1683-
AC_CACHE_CHECK([for __attribute__((__deprecated__(msg))) in C++],
1684-
rb_cv_CentOS6_CXX_workaround,
1685-
RUBY_WERROR_FLAG([
1686-
AC_LANG_PUSH([C++])
1687-
AC_COMPILE_IFELSE(
1688-
[AC_LANG_PROGRAM(
1689-
[],
1690-
[__attribute__((__deprecated__("message"))) int conftest(...);])],
1691-
[rb_cv_CentOS6_CXX_workaround=yes],
1692-
[rb_cv_CentOS6_CXX_workaround=no])
1693-
AC_LANG_POP()]))
1694-
AS_IF([test "$rb_cv_CentOS6_CXX_workaround" != no],[
1695-
AC_DEFINE([RUBY_CXX_DEPRECATED(msg)],
1696-
[__attribute__((__deprecated__(msg)))])])
1697-
16981683
AC_CACHE_CHECK([for std::nullptr_t], rb_cv_CXX_nullptr, [
16991684
AC_LANG_PUSH([C++])
17001685
AC_COMPILE_IFELSE(

0 commit comments

Comments
 (0)