Actions
Backport #6257
closed[mingw] -Wshorten-64-to-32 error in io.c using clang
Status:
Closed
Assignee:
-
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
Like0
Like0Like0Like0