[ruby/etc] Suppress unused function warning

https://github.com/ruby/etc/commit/410c8dd4ae
This commit is contained in:
Nobuyoshi Nakada 2025-04-13 21:59:26 +09:00 committed by git
parent 6d00fa2270
commit 311167ee3a

View File

@ -1311,4 +1311,8 @@ Init_etc(void)
rb_extend_object(sGroup, rb_mEnumerable);
rb_define_singleton_method(sGroup, "each", etc_each_group, 0);
#endif
#if defined(HAVE_GETPWENT) || defined(HAVE_GETGRENT)
(void)safe_setup_str;
#endif
}