[#89806] [Ruby trunk Bug#15306] Generate prelude.c using miniruby — v.ondruch@...
Issue #15306 has been reported by vo.x (Vit Ondruch).
3 messages
2018/11/15
[ruby-core:89688] [Ruby trunk Bug#15279] Lots of warnings about signed and unsigned types for macro RHASH_SIZE
From:
duerst@...
Date:
2018-11-03 03:19:52 UTC
List:
ruby-core #89688
Issue #15279 has been reported by duerst (Martin Dürst).
----------------------------------------
Bug #15279: Lots of warnings about signed and unsigned types for macro RHASH_SIZE
https://bugs.ruby-lang.org/issues/15279
* Author: duerst (Martin Dürst)
* Status: Open
* Priority: Normal
* Assignee: nobu (Nobuyoshi Nakada)
* Target version:
* ruby -v:
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
When trying to compile the latest version of Ruby, I get a lot of warnings such as the following:
```
compiling array.c
In file included from transient_heap.h:12:0,
from array.c:21:
array.c: In function ‘rb_ary_uniq_bang’:
internal.h:766:74: warning: signed and unsigned type in conditional expression [-Wsign-compare]
# define RHASH_SIZE(h) (RHASH_ARRAY_P(h) ? RHASH_ARRAY_SIZE_RAW(h) : RHASH_ST_SIZE(h))
^
array.c:4864:17: note: in expansion of macro ‘RHASH_SIZE’
hash_size = RHASH_SIZE(hash);
^
```
I have attached a longer list in a file.
The version of Ruby I used for compilation is ruby 2.4.0dev (2016-06-09 trunk 55334) [x86_64-linux], but that should be unrelated.
---Files--------------------------------
20181103bug.txt (42.7 KB)
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>