1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

syserr_initialize: delete redundant strerror() declaration

This line issues a warning on clang.  strerror is of course a part of
ISO C since its dawn.  We practically have never needed it.
This commit is contained in:
卜部昌平 2022-09-13 15:08:50 +09:00
parent 45482fea3c
commit 104069e75a
Notes: git 2022-09-21 11:44:36 +09:00

View file

@ -2437,9 +2437,6 @@ get_syserr(int n)
static VALUE
syserr_initialize(int argc, VALUE *argv, VALUE self)
{
#if !defined(_WIN32)
char *strerror();
#endif
const char *err;
VALUE mesg, error, func, errmsg;
VALUE klass = rb_obj_class(self);