Project

General

Profile

Actions

Backport #6257

closed

[mingw] -Wshorten-64-to-32 error in io.c using clang

Added by jonforums (Jon Forums) about 12 years ago. Updated about 12 years ago.

Status:
Closed
Assignee:
-
[ruby-core:44137]

Description

Building trunk@35349 on Win7 32bit with clang 3.1 (trunk build on Win7) + MinGW GCC 4.6.2 I get the following error:

C:\Users\Jon\Documents\RubyDev\ruby-git\build>sh -c "../configure --enable-shared --disable-install-doc --with-gcc=c:/clang/bin/clang.exe"
C:\Users\Jon\Documents\RubyDev\ruby-git\build>make
...
compiling ../io.c
../io.c:458:21: error: implicit conversion loses integer precision: 'long long' to 'long'
[-Werror,-Wshorten-64-to-32]
extra_max = pos - fptr->rbuf.len;
~ ~~~~^~~~~~~~~~~~~~~~
1 error generated.
make: *** [io.o] Error 1

Actions #1

Updated by naruse (Yui NARUSE) about 12 years ago

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

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


Actions #2

Updated by naruse (Yui NARUSE) about 12 years ago

  • Tracker changed from Bug to Backport
  • Project changed from Ruby master to Backport193
  • Category deleted (core)

Updated by jonforums (Jon Forums) about 12 years ago

ruby_1_9_3 now builds and passes make test using clang 3.1 (trunk 154297) + MinGW 4.6.2 on Win7 32bit :)

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0