diff options
author | 卜部昌平 <[email protected]> | 2022-09-13 15:08:50 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2022-09-21 11:44:09 +0900 |
commit | 104069e75a385d9b04c86cd31f2aa60547ad6a55 (patch) | |
tree | de706d5d7e1b0ff7bf7ad973ce47c6dc019d3dae /error.c | |
parent | 45482fea3c874c4441e1846fb30cac1a92ffbd51 (diff) |
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.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6358
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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); |