sem_case.adb (Expand_Others_Choice): Improve warning.
2005-06-14 Ed Schonberg <schonberg@adacore.com> * sem_case.adb (Expand_Others_Choice): Improve warning. From-SVN: r101058
This commit is contained in:
parent
bc49df98e8
commit
4875fbba52
@ -524,7 +524,8 @@ package body Sem_Case is
|
||||
and then Comes_From_Source (Others_Choice)
|
||||
and then Is_Empty_List (Choice_List)
|
||||
then
|
||||
Error_Msg_N ("?others choice is empty", Others_Choice);
|
||||
Error_Msg_N ("?OTHERS choice is redundant", Others_Choice);
|
||||
Error_Msg_N ("\previous choices cover all values", Others_Choice);
|
||||
end if;
|
||||
end Expand_Others_Choice;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user