From: duerst@... Date: 2018-11-03T03:19:52+00:00 Subject: [ruby-core:89688] [Ruby trunk Bug#15279] Lots of warnings about signed and unsigned types for macro RHASH_SIZE 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: