mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-12 07:34:27 +08:00
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
This commit is contained in:
parent
f81a440f85
commit
875ac75a20
@ -1,3 +1,12 @@
|
|||||||
|
Wed Sep 30 19:03:02 1998 Kaveh R. Ghazi <ghazi@snafu.rutgers.edu>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
Tue Sep 29 21:37:33 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
Tue Sep 29 21:37:33 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||||
|
|
||||||
* ch-tree.h (build_compare_expr): Change first argument's type
|
* ch-tree.h (build_compare_expr): Change first argument's type
|
||||||
|
@ -2405,7 +2405,7 @@ decode_decl_selective (decl, all_decls)
|
|||||||
|
|
||||||
CH_ALREADY_GRANTED (decl) = 1;
|
CH_ALREADY_GRANTED (decl) = 1;
|
||||||
|
|
||||||
switch ((enum chill_tree_code)TREE_CODE (decl))
|
switch ((int)TREE_CODE (decl))
|
||||||
{
|
{
|
||||||
case VAR_DECL:
|
case VAR_DECL:
|
||||||
case BASED_DECL:
|
case BASED_DECL:
|
||||||
@ -2789,6 +2789,8 @@ really_grant_this (decl, granted_decls)
|
|||||||
return search_in_list (DECL_NAME (decl), granted_decls);
|
return search_in_list (DECL_NAME (decl), granted_decls);
|
||||||
else
|
else
|
||||||
return 1;
|
return 1;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* this nerver should happen */
|
/* this nerver should happen */
|
||||||
|
@ -2036,7 +2036,10 @@ chill_resulting_class (class1, class2)
|
|||||||
class.mode
|
class.mode
|
||||||
= CH_ROOT_MODE (CH_RESULTING_MODE (class1.mode, class2.mode));
|
= CH_ROOT_MODE (CH_RESULTING_MODE (class1.mode, class2.mode));
|
||||||
return class;
|
return class;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case CH_DERIVED_CLASS:
|
case CH_DERIVED_CLASS:
|
||||||
switch (class2.kind)
|
switch (class2.kind)
|
||||||
{
|
{
|
||||||
@ -2052,7 +2055,10 @@ chill_resulting_class (class1, class2)
|
|||||||
class.kind = CH_DERIVED_CLASS;
|
class.kind = CH_DERIVED_CLASS;
|
||||||
class.mode = CH_ROOT_MODE (class1.mode);
|
class.mode = CH_ROOT_MODE (class1.mode);
|
||||||
return class;
|
return class;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case CH_ALL_CLASS:
|
case CH_ALL_CLASS:
|
||||||
switch (class2.kind)
|
switch (class2.kind)
|
||||||
{
|
{
|
||||||
@ -2068,7 +2074,12 @@ chill_resulting_class (class1, class2)
|
|||||||
class.kind = CH_DERIVED_CLASS;
|
class.kind = CH_DERIVED_CLASS;
|
||||||
class.mode = CH_ROOT_MODE (class2.mode);
|
class.mode = CH_ROOT_MODE (class2.mode);
|
||||||
return class;
|
return class;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
error ("internal error in chill_root_resulting_mode");
|
error ("internal error in chill_root_resulting_mode");
|
||||||
class.kind = CH_VALUE_CLASS;
|
class.kind = CH_VALUE_CLASS;
|
||||||
|
Loading…
Reference in New Issue
Block a user