aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/class.c
diff options
context:
space:
mode:
authorJens-Michael Hoffmann <jensmh@gmx.de>2002-11-18 15:46:34 +0000
committerAndrew Haley <aph@gcc.gnu.org>2002-11-18 15:46:34 +0000
commita92cb0c3d32169727f3b3a0543bda241663d1244 (patch)
treeeb8e95ee304089b9733a38cca3a66ca60c241853 /gcc/java/class.c
parente7e0de7e333f5389009e7f7b9894c97035021609 (diff)
downloadgcc-a92cb0c3d32169727f3b3a0543bda241663d1244.zip
gcc-a92cb0c3d32169727f3b3a0543bda241663d1244.tar.gz
gcc-a92cb0c3d32169727f3b3a0543bda241663d1244.tar.bz2
buffer.c: Remove unnecessary casts.
2002-11-14 Jens-Michael Hoffmann <jensmh@gmx.de> * buffer.c: Remove unnecessary casts. * check-init.c: Likewise. * class.c: Likewise. * constants.c: Likewise. * decl.c: Likewise. * except.c: Likewise. * gjavah.c: Likewise. * jcf-io.c: Likewise. * jcf-parse.c: Likewise. * jcf-path.c: Likewise. * jvspec.c: Likewise. * lang.c: Likewise. * lex.c: Likewise. * verify.c: Likewise. From-SVN: r59224
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r--gcc/java/class.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c
index db4470c..5df0ffc 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -150,7 +150,7 @@ add_assume_compiled (ident, excludep)
{
assume_compiled_node *parent;
assume_compiled_node *node =
- (assume_compiled_node *) xmalloc (sizeof (assume_compiled_node));
+ xmalloc (sizeof (assume_compiled_node));
node->ident = xstrdup (ident);
node->excludep = excludep;
@@ -160,8 +160,7 @@ add_assume_compiled (ident, excludep)
if (NULL == assume_compiled_tree)
{
- assume_compiled_tree =
- (assume_compiled_node *) xmalloc (sizeof (assume_compiled_node));
+ assume_compiled_tree = xmalloc (sizeof (assume_compiled_node));
assume_compiled_tree->ident = "";
assume_compiled_tree->excludep = 0;
assume_compiled_tree->sibling = NULL;
@@ -232,7 +231,7 @@ ident_subst (old_name, old_length, prefix, old_char, new_char, suffix)
#ifdef __GNUC__
char buffer[i];
#else
- char *buffer = (char *)alloca (i);
+ char *buffer = alloca (i);
#endif
strcpy (buffer, prefix);
for (i = 0; i < old_length; i++)
@@ -613,7 +612,7 @@ add_method_1 (this_class, access_flags, name, function_type)
DECL_CONTEXT (fndecl) = this_class;
DECL_LANG_SPECIFIC (fndecl)
- = (struct lang_decl *) ggc_alloc_cleared (sizeof (struct lang_decl));
+ = ggc_alloc_cleared (sizeof (struct lang_decl));
DECL_LANG_SPECIFIC (fndecl)->desc = LANG_DECL_FUNC;
/* Initialize the static initializer test table. */