[#71439] [Ruby trunk - Feature #11339] [PATCH] io.c: avoid kwarg parsing in C API — matz@...
Issue #11339 has been updated by Yukihiro Matsumoto.
7 messages
2015/11/11
[#71473] Re: [Ruby trunk - Feature #11339] [PATCH] io.c: avoid kwarg parsing in C API
— Eric Wong <normalperson@...>
2015/11/13
Entire series for sockets
[#71450] Ruby 2.3.0-preview1 Released — "NARUSE, Yui" <naruse@...>
Hi,
5 messages
2015/11/11
[#71617] [Ruby trunk - Feature #11664] [PATCH] introduce rb_autoload_value to replace rb_autoload — nobu@...
Issue #11664 has been updated by Nobuyoshi Nakada.
3 messages
2015/11/20
[#71721] [Ruby trunk - Feature #11741] Migrate Ruby to Git from Subversion — me@...
Issue #11741 has been updated by Jon Moss.
4 messages
2015/11/28
[ruby-core:71723] [Ruby trunk - Bug #11343] random.c: getrandom compile error with clang
From:
nagachika00@...
Date:
2015-11-28 18:16:34 UTC
List:
ruby-core #71723
Issue #11343 has been updated by Tomoyuki Chikanaga. Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE Backported r51242 into `ruby_2_2` branch at r52778. ---------------------------------------- Bug #11343: random.c: getrandom compile error with clang https://bugs.ruby-lang.org/issues/11343#change-55129 * Author: Hans Mackowiak * Status: Closed * Priority: Normal * Assignee: Nobuyoshi Nakada * ruby -v: * Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE ---------------------------------------- ``` random.c:526:8: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32] ret = syscall(SYS_getrandom, seed, size, 0); ``` which does make the build of clang fail and there is a warning in `rb_ary_new` too ``` enum.c:766:11: warning: unused typedef 'static_assert_rb_ary_new_from_args_check' [-Wunused-local-typedef] values = rb_ary_new3(1, i); ./include/ruby/intern.h:91:21: note: expanded from macro 'rb_ary_new3' #define rb_ary_new3 rb_ary_new_from_args ./internal.h:649:6: note: expanded from macro 'rb_ary_new_from_args' STATIC_ASSERT(rb_ary_new_from_args, numberof(args_to_new_ary) == (n)); \ ./internal.h:79:48: note: expanded from macro 'STATIC_ASSERT' # define STATIC_ASSERT(name, expr) typedef int static_assert_##name##_check[1 - 2*!(expr)] <scratch space>:354:1: note: expanded from here static_assert_rb_ary_new_from_args_check ``` -- https://bugs.ruby-lang.org/