[前][次][番号順一覧][スレッド一覧]

ruby-changes:73639

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Wed, 21 Sep 2022 11:44:28 +0900 (JST)
Subject: [ruby-changes:73639] 104069e75a (master): syserr_initialize: delete redundant strerror() declaration

https://git.ruby-lang.org/ruby.git/commit/?id=104069e75a

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?=
 <shyouhei@r...>
Date: Tue, 13 Sep 2022 15:08:50 +0900
Subject: 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) https://github.com/ruby/ruby/blob/trunk/error.c#L2437
 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);
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]