From: duerst@... Date: 2018-05-22T03:59:03+00:00 Subject: [ruby-core:87217] [Ruby trunk Bug#14780] In function ‘tr_trans’: warning: unused variable ‘old’ Issue #14780 has been reported by duerst (Martin D��rst). ---------------------------------------- Bug #14780: In function ���tr_trans���: warning: unused variable ���old��� https://bugs.ruby-lang.org/issues/14780 * Author: duerst (Martin D��rst) * Status: Open * Priority: Normal * Assignee: normalperson (Eric Wong) * Target version: * ruby -v: ruby 2.6.0dev (2018-05-21 trunk 63475) [x86_64-cygwin] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- I get the following warnings when compiling string.c: ``` compiling string.c string.c: In function ���tr_trans���: string.c:7038:10: warning: unused variable ���old��� [-Wunused-variable] size_t old = max + termlen; ^~~ string.c:7111:10: warning: unused variable ���old��� [-Wunused-variable] size_t old = max + termlen; ``` The reason seems to be that the newly introduced macro SIZED_REALLOC_N ignores its last parameter in some versions. -- https://bugs.ruby-lang.org/ Unsubscribe: