RFR: JDK-8210221: missing-field-initializer warnings/errors while building vmTestBase
Roman Kennke
rkennke at redhat.com
Thu Aug 30 13:41:52 UTC 2018
Hi there,
JDK-8209611 seems to cause many missing-field-initializer warning-errors
like below:
I am using gcc 4.8.5
Compiling libvmdeath001.cpp (for libvmdeath001.so)
In file included from
/home/rkennke/src/openjdk/shenandoah-jdk/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/unit/libHeap.cpp:29:0:
/home/rkennke/src/openjdk/shenandoah-jdk/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_FollowRefObjects.cpp:38:44:
error: missing initializer for member
'_jvmtiHeapCallbacks::heap_iteration_callback'
[-Werror=missing-field-initializers]
jvmtiHeapCallbacks g_wrongHeapCallbacks = {};
There are many more of those in the build log.
I propose to disable this warning for now.
Bug:
https://bugs.openjdk.java.net/browse/JDK-8210221
Webrev:
http://cr.openjdk.java.net/~rkennke/JDK-8210221/webrev.00/
What do you think?
Roman
More information about the build-dev
mailing list