[llvm-dev] Path.cpp (in LLVMSupport) constant value truncations?

<Alexander G. Riccio> via llvm-dev llvm-dev at lists.llvm.org
Sun Mar 6 18:04:18 PST 2016


I'm trying to see what currently disabled MSVC warnings we can re-enable.
In Path.cpp, I noticed that the function identify_magic in LLVMSupport
generates *fifteen* "C4310: cast truncates constant value" warnings.

In that function, on 15 lines, two byte literals are cast to one byte
chars. What's going on there?

Sincerely,
Alexander Riccio
--
"Change the world or go home."
about.me/ariccio

<http://about.me/ariccio>
If left to my own devices, I will build more.
⁂
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160306/d59e393c/attachment.html>


More information about the llvm-dev mailing list