Project

General

Profile

Actions

Bug #6930

closed

implicit conversion warnings in vm.c

Added by Eregon (Benoit Daloze) almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 2.0.0dev (2012-08-25 trunk 36824) [x86_64-darwin10.8.0]
Backport:
[ruby-core:47310]

Description

$ make
...
compiling vm.c
In file included from vm.c:69:
vm_insnhelper.c: In function ‘vm_setup_method’:
vm_insnhelper.c:530: warning: implicit conversion shortens 64-bit value into a 32-bit value
In file included from vm_exec.c:93,
from vm.c:71:
insns.def: In function ‘vm_exec_core’:
insns.def:841: warning: implicit conversion shortens 64-bit value into a 32-bit value
insns.def:848: warning: implicit conversion shortens 64-bit value into a 32-bit value
compiling vm_dump.c
compiling vm_backtrace.c
...


Files

insns.def.warning.patch (582 Bytes) insns.def.warning.patch nagachika (Tomoyuki Chikanaga), 08/28/2012 11:54 AM
Actions #1

Updated by nobu (Nobuyoshi Nakada) almost 10 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r36825.
Benoit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


suppress warnings

  • insns.def (checkmatch): suppress warnings. [ruby-core:47310]
    [Bug #6930]
  • vm_core.h (VM_FRAME_TYPE_FINISH_P): ditto.

Updated by nagachika (Tomoyuki Chikanaga) almost 10 years ago

There's a remaining warning on my environment (Mac OS X 10.7.4 / gcc-4.2).
I'll attach a patch. Please check it out.

Updated by nobu (Nobuyoshi Nakada) almost 10 years ago

  • % Done changed from 100 to 50

Indeed, checkmatch_type should be moved from the `if' block.
Please commit it.

Actions #4

Updated by nagachika (Tomoyuki Chikanaga) almost 10 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 50 to 100

This issue was solved with changeset r36840.
Benoit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


Actions

Also available in: Atom PDF