From 5e65297bbb0b49c238b9543a6e730ef54c54196d Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Wed, 2 Jan 2002 23:18:59 +0000 Subject: gcc.c (default_compilers): Const-ify. * gcc.c (default_compilers): Const-ify. * mips-tdump.c (stab_names): Likewise. * mips-tfile.c (map_coff_types, map_coff_storage, map_coff_sym_type, map_coff_derived_type, stabs_symbol, pseudo_ops_t, pseudo_ops): Likewise. * protoize.c (default_include): Likewise f: * com.c (clear_binding_level): Const-ify. (ffecom_arglist_expr_): Likewise. * info.c (ffeinfo_types_): Don't needlessly zero init. * lex.c (ffelex_hash_kludge): Const-ify. java: * parse.y (src_parse_roots): Don't needlessly zero init. libiberty: * cp-demangle.c (long_options): Const-ify. * cplus-dem.c (long_options): Likewise. From-SVN: r48485 --- gcc/f/com.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/f/com.c') diff --git a/gcc/f/com.c b/gcc/f/com.c index 823f18d..9abab69 100644 --- a/gcc/f/com.c +++ b/gcc/f/com.c @@ -563,7 +563,7 @@ static struct binding_level *global_binding_level; /* Binding level structures are initialized by copying this one. */ -static struct binding_level clear_binding_level +static const struct binding_level clear_binding_level = {NULL, NULL, NULL, NULL_BINDING_LEVEL, 0}; @@ -1283,7 +1283,7 @@ ffecom_arglist_expr_ (const char *c, ffebld expr) tree item; bool ptr = FALSE; tree wanted = NULL_TREE; - static char zed[] = "0"; + static const char zed[] = "0"; if (c == NULL) c = &zed[0]; -- cgit v1.1