From: Ben Elliston <bje@au1.ibm.com>
To: java <java@gcc.gnu.org>, gcc-patches <gcc-patches@gcc.gnu.org>
Cc: Andrew Haley <aph@redhat.com>
Subject: PATCH, libjava: silence more warnings
Date: Tue, 01 Dec 2009 18:22:00 -0000 [thread overview]
Message-ID: <1259691731.6215.6.camel@bapbop> (raw)
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;
next reply other threads:[~2009-12-01 18:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-01 18:22 Ben Elliston [this message]
2009-12-01 18:32 ` Dave Korn
2009-12-01 19:44 ` Tom Tromey
2009-12-01 20:15 ` Dave Korn
2009-12-01 18:49 ` Andrew Haley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1259691731.6215.6.camel@bapbop \
--to=bje@au1.ibm.com \
--cc=aph@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=java@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).