United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6323942 : jvmti.h causes C compiler warning

Details
Type:
Bug
Submit Date:
2005-09-14
Status:
Open
Updated Date:
2013-08-09
Project Name:
JDK
Resolved Date:
Component:
hotspot
OS:
generic
Sub-Component:
jvmti
CPU:
generic
Priority:
P4
Resolution:
Unresolved
Affected Versions:
6
Targeted Versions:
tbd_minor

Related Reports

Sub Tasks

Description
> FYI...
>
> The Sun version of lint is complaining about:
>
> typedef jint (JNICALL *jvmtiReservedCallback)();
>
> being an old-style declaration, wants it to be:
>
> typedef jint (JNICALL *jvmtiReservedCallback)(void);
>


Or since it is never called, you could change it to typedef jint (JNICALL *jvmtiReservedCallback)(void*);
and both C++ and C would be happy.

                                    

Comments



Hardware and Software, Engineered to Work Together