[#86787] [Ruby trunk Feature#14723] [WIP] sleepy GC — ko1@...

Issue #14723 has been updated by ko1 (Koichi Sasada).

13 messages 2018/05/01
[#86790] Re: [Ruby trunk Feature#14723] [WIP] sleepy GC — Eric Wong <normalperson@...> 2018/05/01

ko1@atdot.net wrote:

[#87095] [Ruby trunk Feature#14767] [PATCH] gc.c: use monotonic counters for objspace_malloc_increase — ko1@...

Issue #14767 has been updated by ko1 (Koichi Sasada).

9 messages 2018/05/17

[ruby-core:87217] [Ruby trunk Bug#14780] In function ‘tr_trans’: warning: unused variable ‘old’

From: duerst@...
Date: 2018-05-22 03:59:03 UTC
List: ruby-core #87217
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: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next