This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: _Jv_ThrowNoMemory is noreturn
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Subject: Patch: _Jv_ThrowNoMemory is noreturn
- From: Tom Tromey <tromey at redhat dot com>
- Date: 29 May 2001 13:15:18 -0600
- Reply-To: tromey at redhat dot com
This fixes a warning.
I'm checking this in on the trunk only.
2001-05-29 Tom Tromey <tromey@redhat.com>
* include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.
Tom
Index: include/jvm.h
===================================================================
RCS file: /cvs/gcc/gcc/libjava/include/jvm.h,v
retrieving revision 1.35
diff -u -r1.35 jvm.h
--- jvm.h 2001/05/24 05:40:36 1.35
+++ jvm.h 2001/05/29 18:53:50
@@ -115,7 +115,7 @@
/* Allocate space that is known to be pointer-free. */
void *_Jv_AllocBytes (jsize size) __attribute__((__malloc__));
/* Explicitly throw an out-of-memory exception. */
-void _Jv_ThrowNoMemory();
+void _Jv_ThrowNoMemory() __attribute__((__noreturn__));
/* Allocate an object with a single pointer. The first word is reserved
for the GC, and the second word is the traced pointer. */
void *_Jv_AllocTraceOne (jsize size /* incl. reserved slot */);