aboutsummaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2022-09-13 15:08:50 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2022-09-21 11:44:09 +0900
commit104069e75a385d9b04c86cd31f2aa60547ad6a55 (patch)
treede706d5d7e1b0ff7bf7ad973ce47c6dc019d3dae /error.c
parent45482fea3c874c4441e1846fb30cac1a92ffbd51 (diff)
downloadruby-104069e75a385d9b04c86cd31f2aa60547ad6a55.tar.gz
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.
Diffstat (limited to 'error.c')
-rw-r--r--error.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/error.c b/error.c
index 07fa04627e..113264eeb7 100644
--- a/error.c
+++ b/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);