PATCH, libjava: silence more warnings

Ben Elliston <[email protected]>
Newsgroups gmane.comp.gcc.patches,gmane.comp.gcc.java.devel
Message-ID <1259691731.6215.6.camel@bapbop>
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  <[email protected]>

        * 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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.