PATCH, libjava: silence more warnings

Tom Tromey
Tue Dec 1 19:44:00 GMT 2009

>>>>> "Dave" == Dave Korn <> writes:

Dave> Ben Elliston wrote:
>> ::java::lang::String *
>> -java::net::VMURLConnection::guessContentTypeFromBuffer (jbyteArray bytes,
>> -                                                       jint valid)
>> +java::net::VMURLConnection::guessContentTypeFromBuffer (jbyteArray bytes __attribute__ ((unused)),
>> +                                                       jint valid __attribute__ ((unused)))

Dave>   There's a #define MAYBE_UNUSED in include/jvm.h, as used in
Dave> java/lang/  But maybe jvm.h isn't available here?

It is ok to include jvm.h from any of the CNI code.

But, it is also ok to just use an unadorned __attribute__.  We know this
code can only be compiled by g++.


More information about the Java mailing list