Actions
Bug #15366
closedbigdecimal.c:3699:1: warning: ‘Zero’ defined but not used
Bug #15366: bigdecimal.c:3699:1: warning: ‘Zero’ defined but not used
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) almost 7 years ago
- Status changed from Open to Closed
Fixed in r66222
Actions