jvmFlagRangeList.cpp(341): warning C4305: 'argument': truncation from 'const intx' to 'double'

Jorn Vernee jbvernee at xs4all.nl
Sat Jul 14 11:52:09 UTC 2018


Hello,

I'm getting the warning in the subject line when trying to build either 
the amber default branch or the valhalla default branch (so I think it's 
also in jdk/jdk? Haven't tried it yet tbh). Here it is again:

.../valhalla/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): 
error C2220: warning treated as error - no 'object' file generated
.../valhalla/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): 
warning C4305: 'argument': truncation from 'const intx' to 'double'

Using --dissable-warnings-as-errors when configuring allows me to 
successfully build, but since it's the only (C++) warning generated, and 
warnings as errors is the default behavior I think the goal is to fix 
warnings as well? So that's why I'm sending this email to report it, but 
if it's unnecessary please let me know. (I couldn't find it on JBS or in 
this mailing list)

My configuration is:

Configuration summary:
* Debug level:    release
* HS debug level: product
* JVM variants:   server
* JVM features:   server: 'aot cds cmsgc compiler1 compiler2 epsilongc 
g1gc graal jfr jni-check jvmci jvmti management nmt parallelgc serialgc 
services vm-structs'
* OpenJDK target: OS: windows, CPU architecture: x86, address length: 64
* Version string: 12-internal+0-adhoc.Jorn.valhalla (12-internal)

Tools summary:
* Environment:    cygwin version 2.10.0(0.325/5/3) (root at 
/cygdrive/j/cygwin64)
* Boot JDK:       java version "10.0.1" 2018-04-17  Java(TM) SE Runtime 
Environment 18.3 (build 10.0.1+10)  Java HotSpot(TM) 64-Bit Server VM 
18.3 (build 10.0.1+10, mixed mode)   (at 
/cygdrive/c/progra~1/java/jdk-10)
* Toolchain:      microsoft (Microsoft Visual Studio 2017)
* C Compiler:     Version 19.14.26430 (at 
/cygdrive/j/progra~2/micros~2/2017/buildt~1/vc/tools/msvc/1414~1.264/bin/hostx86/x64/cl)
* C++ Compiler:   Version 19.14.26430 (at 
/cygdrive/j/progra~2/micros~2/2017/buildt~1/vc/tools/msvc/1414~1.264/bin/hostx86/x64/cl)


Note that this is the BuildTools only version of VS 2017.

Best regards,
Jorn Vernee



More information about the build-dev mailing list