PATCH, libjava: silence more warnings

Ben Elliston bje@au1.ibm.com
Tue Dec 1 18:22:00 GMT 2009


This patch silences a couple of more warnings in libjava:

  libjava/java/net/natVMURLConnection.cc:64:1: warning: unused parameter ‘bytes’
  libjava/java/net/natVMURLConnection.cc:64:1: warning: unused parameter ‘valid’

Tested with a bootstrap on x86_64-linux.  Okay for the trunk?

Ben


2009-12-02  Ben Elliston  <bje@au.ibm.com>

        * java/net/natVMURLConnection.cc (guessContentTypeFromBuffer):
        Mark `bytes' and `valid' parameters as potentially unused.

Index: java/net/natVMURLConnection.cc
===================================================================
--- java/net/natVMURLConnection.cc      (revision 154873)
+++ java/net/natVMURLConnection.cc      (working copy)
@@ -61,8 +61,8 @@
 }
 
 ::java::lang::String *
-java::net::VMURLConnection::guessContentTypeFromBuffer (jbyteArray bytes,
-                                                       jint valid)
+java::net::VMURLConnection::guessContentTypeFromBuffer (jbyteArray bytes __attribute__ ((unused)),
+                                                       jint valid __attribute__ ((unused)))
 {
 #if defined (HAVE_MAGIC_T) && defined (HAVE_MAGIC_H) && defined (USE_LTDL)
   const char *result;




More information about the Java mailing list