Project

General

Profile

Actions

Bug #15366

closed

bigdecimal.c:3699:1: warning: ‘Zero’ defined but not used

Added by duerst (Martin Dürst) over 5 years ago. Updated over 5 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.6.0dev (2018-12-02 trunk 66129) [x86_64-cygwin]
[ruby-core:90221]

Description

When compiling ruby trunk, I get a warning on bigdecimal.c:

compiling bigdecimal.c
bigdecimal.c:3699:1: warning: ‘Zero’ defined but not used [-Wunused-function]
 Zero(void)
 ^~~~

I had a quick look at the code. I indeed did find zero uses of the Zero function. I found one use of a similar One function. (Maybe that parallel is the point? :-)

I think the warning can easily be used by removing the Zero function and the constant it uses, or by using the Zero function once. But I didn't want to make a change in a part of the code that I don't really know.

Updated by mrkn (Kenta Murata) over 5 years ago

  • Status changed from Open to Closed

Fixed in r66222

Actions

Also available in: Atom PDF

Like0
Like0