Message ID | 20101018095332.GA25805@adacore.com |
---|---|
State | New |
Headers | show |
Index: sem_util.adb =================================================================== --- sem_util.adb (revision 165614) +++ sem_util.adb (working copy) @@ -9451,7 +9451,10 @@ package body Sem_Util is if Comes_From_Source (Exp) or else Modification_Comes_From_Source then - if Has_Pragma_Unmodified (Ent) then + -- Give warning if pragma unmodified given and we are + -- sure this is a modification. + + if Has_Pragma_Unmodified (Ent) and then Sure then Error_Msg_NE ("?pragma Unmodified given for &!", N, Ent); end if;