summaryrefslogtreecommitdiff
path: root/gcc/ch/grant.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@snafu.rutgers.edu>1998-09-30 16:07:19 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-09-30 16:07:19 +0000
commit875ac75a204b98090d6a466e6d309699ada2e50b (patch)
treece99406440dd5e24ca90ec2f39507ca8ac398a00 /gcc/ch/grant.c
parentf81a440f85028230209c36e453b53ee01206e404 (diff)
downloadgcc-875ac75a204b98090d6a466e6d309699ada2e50b.tar.gz
Warning fixes:
* grant.c (decode_decl_selective): Cast switch's enum argument to an int. (really_grant_this): Add default case in switch. * typeck.c (chill_resulting_class): Add default cases in switch. Also add `break' statements after each case. From-SVN: r22677
Diffstat (limited to 'gcc/ch/grant.c')
-rw-r--r--gcc/ch/grant.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ch/grant.c b/gcc/ch/grant.c
index eb441d86cc1..81162f0eed4 100644
--- a/gcc/ch/grant.c
+++ b/gcc/ch/grant.c
@@ -2405,7 +2405,7 @@ decode_decl_selective (decl, all_decls)
CH_ALREADY_GRANTED (decl) = 1;
- switch ((enum chill_tree_code)TREE_CODE (decl))
+ switch ((int)TREE_CODE (decl))
{
case VAR_DECL:
case BASED_DECL:
@@ -2789,6 +2789,8 @@ really_grant_this (decl, granted_decls)
return search_in_list (DECL_NAME (decl), granted_decls);
else
return 1;
+ default:
+ break;
}
/* this nerver should happen */