michelle.devereux@Ireland 2001-06-27
Compiling hprof.c JDK1.3.1 gives the following warnings:
hprof.c
../../../src/share/tools/hprof/hprof.c(449) : warning C4090: 'function'
: different 'const' qualifiers
../../../src/share/tools/hprof/hprof.c(449) : warning C4024:
'hprof_class_load_event' : different types for formal and actual
parameter 2
../../../src/share/tools/hprof/hprof.c(532) : warning C4090: 'function'
: different 'const' qualifiers
../../../src/share/tools/hprof/hprof.c(532) : warning C4024:
'hprof_raw_monitor_event' : different types for formal and actual
parameter 2
The reason for these warnings appears to be due to the fact that the const qualifier has been added to certain fields of the JVMPI_Event structure and references to these fields are now causing the above compiler warnings (the references to JVMPI_Event.u.class_load.class_name and JVMPI_Event.u.raw_monitor.name still expect a 'char *' not a 'const char *').
The build should complete without warnings.
Compiling hprof.c JDK1.3.1 gives the following warnings:
hprof.c
../../../src/share/tools/hprof/hprof.c(449) : warning C4090: 'function'
: different 'const' qualifiers
../../../src/share/tools/hprof/hprof.c(449) : warning C4024:
'hprof_class_load_event' : different types for formal and actual
parameter 2
../../../src/share/tools/hprof/hprof.c(532) : warning C4090: 'function'
: different 'const' qualifiers
../../../src/share/tools/hprof/hprof.c(532) : warning C4024:
'hprof_raw_monitor_event' : different types for formal and actual
parameter 2
The reason for these warnings appears to be due to the fact that the const qualifier has been added to certain fields of the JVMPI_Event structure and references to these fields are now causing the above compiler warnings (the references to JVMPI_Event.u.class_load.class_name and JVMPI_Event.u.raw_monitor.name still expect a 'char *' not a 'const char *').
The build should complete without warnings.