aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-12-31 03:30:22 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-12-31 03:30:22 +0000
commitc63b98cdad0bfd07d732fffbf6013893a919bfeb (patch)
treef85ebd132a52c9f4368a95dcbccd79d8403b7c9d /gcc/java/parse.h
parent6bafd8b6e9fcf4c7a9606af4fc7965717c43a161 (diff)
downloadgcc-c63b98cdad0bfd07d732fffbf6013893a919bfeb.zip
gcc-c63b98cdad0bfd07d732fffbf6013893a919bfeb.tar.gz
gcc-c63b98cdad0bfd07d732fffbf6013893a919bfeb.tar.bz2
class.c (assume_compiled, [...]): Add static prototype.
* class.c (assume_compiled, assume_compiled_node): Add static prototype. (add_assume_compiled): Use xmalloc/xstrdup, not malloc/strdup. * jcf-dump.c (ARRAY_NEW_NUM): Cast long to int in switch. * jvgenmain.c (usage): Add static prototype with ATTRIBUTE_NORETURN. * parse.h (OBSOLETE_MODIFIER_WARNING): Rename parameter `modifier' to `__modifier' to avoid stringifying it. * parse.y (verify_constructor_circularity): Don't call a variadic function with a non-literal format string. (java_check_abstract_methods): Move unreachable code inside `continue' statement. (lookup_method_invoke): Call xstrdup, not strdup. * expr.c (expand_java_field_op): Avoid the use of ANSI string concatenation. * jcf-parse.c (yyparse): Likewise. * jv-scan.c (main): Likewise. From-SVN: r31148
Diffstat (limited to 'gcc/java/parse.h')
-rw-r--r--gcc/java/parse.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/java/parse.h b/gcc/java/parse.h
index 0221598..c875592 100644
--- a/gcc/java/parse.h
+++ b/gcc/java/parse.h
@@ -138,12 +138,12 @@ extern tree stabilize_reference PROTO ((tree));
/* Pedantic warning on obsolete modifiers. Note: when cl is NULL,
flags was set artificially, such as for a interface method */
-#define OBSOLETE_MODIFIER_WARNING(cl, flags, modifier, format, arg) \
+#define OBSOLETE_MODIFIER_WARNING(cl, flags, __modifier, format, arg) \
{ \
- if (flag_redundant && (cl) && ((flags) & (modifier))) \
+ if (flag_redundant && (cl) && ((flags) & (__modifier))) \
parse_warning_context (cl, \
"Discouraged redundant use of `%s' modifier in declaration of " format, \
- java_accstring_lookup (modifier), arg); \
+ java_accstring_lookup (__modifier), arg); \
}
/* Quickly build a temporary pointer on hypothetical type NAME. */