Issue #17829 has been reported by xtkoba (Tee KOBAYASHI).

----------------------------------------
Misc #17829: Clang/LLVM correctness of x64-mingw32 build (`shorten-64-to-32` warnings)
https://bugs.ruby-lang.org/issues/17829

* Author: xtkoba (Tee KOBAYASHI)
* Status: Open
* Priority: Normal
----------------------------------------
The attached log is from `make miniruby` for x64-mingw32 with Clang/LLVM. Warnings are silenced except for `-Wshorten-64-to-32`.

This might not be an issue solely for Clang/LLVM, because the size of each type is the same as that in GCC.

I believe most of them are false positive. It would be easy to silence these warnings by explicit type casting. But before doing so, it must be checked whether each shortening is legitimate or not.

Version: `ruby 3.1.0dev (2021-04-26T13:46:51Z master 203eeeefdd) [x64-mingw32]`


---Files--------------------------------
ruby-x64-mingw32-clang-miniruby-Wshorten-64-to-32.log (181 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>