diff options
Diffstat (limited to 'gcc/java/builtins.c')
-rw-r--r-- | gcc/java/builtins.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/java/builtins.c b/gcc/java/builtins.c index 1ac37fb52f0..d295aa54cf4 100644 --- a/gcc/java/builtins.c +++ b/gcc/java/builtins.c @@ -156,7 +156,7 @@ build_function_call_expr (tree fn, tree arglist) static tree cos_builtin (method_return_type, method_arguments) - tree method_return_type, method_arguments; + tree method_return_type ATTRIBUTE_UNUSED, method_arguments; { /* FIXME: this assumes that jdouble and double are the same. */ tree fn = built_in_decls[BUILT_IN_COS]; @@ -167,7 +167,7 @@ cos_builtin (method_return_type, method_arguments) static tree sin_builtin (method_return_type, method_arguments) - tree method_return_type, method_arguments; + tree method_return_type ATTRIBUTE_UNUSED, method_arguments; { /* FIXME: this assumes that jdouble and double are the same. */ tree fn = built_in_decls[BUILT_IN_SIN]; @@ -178,7 +178,7 @@ sin_builtin (method_return_type, method_arguments) static tree sqrt_builtin (method_return_type, method_arguments) - tree method_return_type, method_arguments; + tree method_return_type ATTRIBUTE_UNUSED, method_arguments; { /* FIXME: this assumes that jdouble and double are the same. */ tree fn = built_in_decls[BUILT_IN_SQRT]; @@ -200,7 +200,7 @@ define_builtin (val, name, class, type, fallback_p) { tree decl; - if (! name) + if (! name || ! type) return; if (strncmp (name, "__builtin_", strlen ("__builtin_")) != 0) |