This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: warning fixes
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 10 Jan 2007 13:47:45 -0700
- Subject: Patch: FYI: warning fixes
- Reply-to: tromey at redhat dot com
I'm checking this in.
This fixes a few warnings that g++ now gives.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* java/lang/natDouble.cc (toString): Added parens.
* gnu/gcj/io/shs.h (PROTO): Define.
* link.cc (resolve_pool_entry): Added missing braces.
Index: link.cc
===================================================================
--- link.cc (revision 120646)
+++ link.cc (working copy)
@@ -1,6 +1,6 @@
// link.cc - Code for linking and resolving classes and pool entries.
-/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation
+/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation
This file is part of libgcj.
@@ -408,16 +408,18 @@
// with it should just throw a NoClassDefFoundError with the class'
// name.
if (! found)
- if (lazy)
- {
- found = _Jv_NewClass(name, NULL, NULL);
- found->state = JV_STATE_PHANTOM;
- pool->tags[index] |= JV_CONSTANT_ResolvedFlag;
- pool->data[index].clazz = found;
- break;
- }
- else
- throw new java::lang::NoClassDefFoundError (name->toString());
+ {
+ if (lazy)
+ {
+ found = _Jv_NewClass(name, NULL, NULL);
+ found->state = JV_STATE_PHANTOM;
+ pool->tags[index] |= JV_CONSTANT_ResolvedFlag;
+ pool->data[index].clazz = found;
+ break;
+ }
+ else
+ throw new java::lang::NoClassDefFoundError (name->toString());
+ }
// Check accessibility, but first strip array types as
// _Jv_ClassNameSamePackage can't handle arrays.
Index: java/lang/natDouble.cc
===================================================================
--- java/lang/natDouble.cc (revision 120646)
+++ java/lang/natDouble.cc (working copy)
@@ -1,6 +1,6 @@
// natDouble.cc - Implementation of java.lang.VMDouble native methods.
-/* Copyright (C) 1998, 1999, 2000, 2001, 2003, 2005, 2006 Free Software Foundation
+/* Copyright (C) 1998, 1999, 2000, 2001, 2003, 2005, 2006, 2007 Free Software Foundation
This file is part of libgcj.
@@ -87,7 +87,7 @@
if (sign)
*d++ = '-';
- if (value >= 1e-3 && value < 1e7 || value == 0)
+ if ((value >= 1e-3 && value < 1e7) || value == 0)
{
if (decpt <= 0)
*d++ = '0';
Index: gnu/gcj/io/shs.h
===================================================================
--- gnu/gcj/io/shs.h (revision 120646)
+++ gnu/gcj/io/shs.h (working copy)
@@ -31,6 +31,8 @@
# endif
#endif
+#define PROTO
+
/* The SHS block size and message digest sizes, in bytes */
#define SHS_BLOCKSIZE 64