This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
two minor libjava fixes
- To: java-patches at gcc dot gnu dot org
- Subject: two minor libjava fixes
- From: Richard Henderson <rth at redhat dot com>
- Date: Thu, 20 Sep 2001 15:26:42 -0700
The no-threads change removes a warning for unused arguments.
The mprec change fixes a parenthesis typo.
Ok?
r~
* libjava/no-threads.cc (_Jv_ThreadStart): Remove names of
unused arguments.
* libjava/java/lang/mprec.c (lo0bits): Fix paren typo.
Index: libjava/no-threads.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/no-threads.cc,v
retrieving revision 1.6
diff -c -p -d -r1.6 no-threads.cc
*** no-threads.cc 2001/05/22 06:47:48 1.6
--- no-threads.cc 2001/09/20 22:19:17
*************** _Jv_ThreadInitData (java::lang::Thread *
*** 28,35 ****
}
void
! _Jv_ThreadStart (java::lang::Thread *thread, _Jv_Thread_t *,
! _Jv_ThreadStartFunc *meth)
{
JvFail ("Thread.start called but threads not available");
}
--- 28,34 ----
}
void
! _Jv_ThreadStart (java::lang::Thread *, _Jv_Thread_t *, _Jv_ThreadStartFunc *)
{
JvFail ("Thread.start called but threads not available");
}
Index: libjava/java/lang/mprec.c
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/mprec.c,v
retrieving revision 1.1.1.1
diff -c -p -d -r1.1.1.1 mprec.c
*** mprec.c 1999/04/07 14:52:38 1.1.1.1
--- mprec.c 2001/09/20 22:19:17
*************** _DEFUN (lo0bits, (y), unsigned long *y)
*** 296,302 ****
{
k++;
x >>= 1;
! if (!x & 1)
return 32;
}
*y = x;
--- 296,302 ----
{
k++;
x >>= 1;
! if (!(x & 1))
return 32;
}
*y = x;