From 104069e75a385d9b04c86cd31f2aa60547ad6a55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Tue, 13 Sep 2022 15:08:50 +0900 Subject: [PATCH] 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. --- error.c | 3 --- 1 file changed, 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);