OSDN Git Service

* java/net/natVMURLConnection.cc (guessContentTypeFromBuffer):
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Dec 2009 22:05:25 +0000 (22:05 +0000)
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Dec 2009 22:05:25 +0000 (22:05 +0000)
Mark `bytes' and `valid' parameters as potentially unused.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154886 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/java/net/natVMURLConnection.cc

index 2f1f8b6..11b94ba 100644 (file)
@@ -1,3 +1,8 @@
+2009-12-02  Ben Elliston  <bje@au.ibm.com>
+
+       * java/net/natVMURLConnection.cc (guessContentTypeFromBuffer):
+       Mark `bytes' and `valid' parameters as potentially unused.
+
 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
 
        * testsuite/lib/libjava.exp (libjava_init):  Add host-dependent
index a683fc6..0a30a21 100644 (file)
@@ -61,8 +61,8 @@ java::net::VMURLConnection::init ()
 }
 
 ::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;