[#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:87219] [Ruby trunk Bug#14780][Closed] In function ‘tr_trans’: warning: unused variable ‘old’

From: duerst@...
Date: 2018-05-22 05:56:40 UTC
List: ruby-core #87219
Issue #14780 has been updated by duerst (Martin Dürst).

Status changed from Open to Closed

normalperson (Eric Wong) wrote:

>  Can you try r63487?  It uses the MAYBE_UNUSED macro which I hope
>  works for your platform.  Thanks.

Confirmed and closed. Thanks!

----------------------------------------
Bug #14780:  In function ‘tr_trans’: warning: unused variable ‘old’
https://bugs.ruby-lang.org/issues/14780#change-72210

* Author: duerst (Martin Dürst)
* Status: Closed
* 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