summaryrefslogtreecommitdiff
path: root/gcc/java/expr.c
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-04 23:30:01 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-04 23:30:01 +0000
commit0810ff536895c36702169eaea2d8ed104448e16f (patch)
treeddca56d181d8e3e6e310c0ba87aebef1213230cb /gcc/java/expr.c
parent28142763147a93f59e1538f16983cbe9158bf37a (diff)
PR java/26097:
* expr.c (push_type): Avoid side effect in gcc_assert. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110598 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/expr.c')
-rw-r--r--gcc/java/expr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index 6d8926cdef4e..5e7699b87d8c 100644
--- a/gcc/java/expr.c
+++ b/gcc/java/expr.c
@@ -1,5 +1,5 @@
/* Process expressions for the GNU compiler for the Java(TM) language.
- Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This file is part of GCC.
@@ -273,7 +273,8 @@ push_type_0 (tree type)
void
push_type (tree type)
{
- gcc_assert (push_type_0 (type));
+ int r = push_type_0 (type);
+ gcc_assert (r);
}
static void