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

Also available in: Atom PDF

Like0
Like0Like0Like0