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:
parent
45482fea3c
commit
104069e75a
Notes:
git
2022-09-21 11:44:36 +09:00
1 changed files with 0 additions and 3 deletions
3
error.c
3
error.c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue