Commit 3953c057 by Michael Koch Committed by Michael Koch

jvm.h (MAYBE_UNUSED): New macro tp mark probably unused arguments.

2004-02-01  Michael Koch  <konqueror@gmx.de>

	* include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
	arguments.
	* jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
	* verify.cc (debug_print): Mark 'fmt' unused.

From-SVN: r77079
parent afd4cbbb
2004-02-01 Michael Koch <konqueror@gmx.de>
* include/jvm.h (MAYBE_UNUSED): New macro tp mark probably unused
arguments.
* jni.cc (_Jv_LookupJNIMethod): Mark 'args_size' unused.
* verify.cc (debug_print): Mark 'fmt' unused.
2004-01-30 Michael Koch <konqueror@gmx.de> 2004-01-30 Michael Koch <konqueror@gmx.de>
* configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1. * configure.in: Use pkg-config to check for GTK 2.2 and libart 2.1.
......
...@@ -30,6 +30,9 @@ details. */ ...@@ -30,6 +30,9 @@ details. */
#include <gcj/cni.h> #include <gcj/cni.h>
#include <gcj/field.h> #include <gcj/field.h>
/* Macro for possible unused arguments. */
#define MAYBE_UNUSED __attribute__((__unused__))
/* Structure of the virtual table. */ /* Structure of the virtual table. */
struct _Jv_VTable struct _Jv_VTable
{ {
......
...@@ -2051,7 +2051,7 @@ _Jv_GetJNIEnvNewFrame (jclass klass) ...@@ -2051,7 +2051,7 @@ _Jv_GetJNIEnvNewFrame (jclass klass)
// This is `extern "C"' because the compiler uses it. // This is `extern "C"' because the compiler uses it.
extern "C" void * extern "C" void *
_Jv_LookupJNIMethod (jclass klass, _Jv_Utf8Const *name, _Jv_LookupJNIMethod (jclass klass, _Jv_Utf8Const *name,
_Jv_Utf8Const *signature, int args_size) _Jv_Utf8Const *signature, MAYBE_UNUSED int args_size)
{ {
char buf[10 + 6 * (name->length + signature->length) + 12]; char buf[10 + 6 * (name->length + signature->length) + 12];
int long_start; int long_start;
......
...@@ -40,7 +40,7 @@ static void debug_print (const char *fmt, ...) ...@@ -40,7 +40,7 @@ static void debug_print (const char *fmt, ...)
__attribute__ ((format (printf, 1, 2))); __attribute__ ((format (printf, 1, 2)));
static inline void static inline void
debug_print (const char *fmt, ...) debug_print (MAYBE_UNUSED const char *fmt, ...)
{ {
#ifdef VERIFY_DEBUG #ifdef VERIFY_DEBUG
va_list ap; va_list ap;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment