diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2022-04-16 14:38:54 +0200 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-05-19 14:05:32 +0000 |
commit | 0d9583573b7fbb4ee3fc769f962dfdde8684d795 (patch) | |
tree | 3f7847b93c28fad28799f6b770fba926284c8946 /gcc | |
parent | eac0a28825a82b914fc319a3827a1b89e577f1b9 (diff) | |
download | gcc-0d9583573b7fbb4ee3fc769f962dfdde8684d795.zip gcc-0d9583573b7fbb4ee3fc769f962dfdde8684d795.tar.gz gcc-0d9583573b7fbb4ee3fc769f962dfdde8684d795.tar.bz2 |
[Ada] Remove redundant marking of illegal pragma with error posted
We flag illegal pragma Elaborate with a call to Error_Msg on the pragma
argument, which in turn calls Set_Error_Posted on the enclosing
statement, i.e. on the pragma itself. The explicit call to
Set_Error_Posted on the pragma itself was redundant.
Cleanup related to handling of illegal code when detecting uninitialized
scalar objects.
gcc/ada/
* sem_prag.adb (Analyze_Pragma): Remove redundant call to
Set_Error_Posted.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/sem_prag.adb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/ada/sem_prag.adb b/gcc/ada/sem_prag.adb index 0bee4a1..8cc42c6 100644 --- a/gcc/ada/sem_prag.adb +++ b/gcc/ada/sem_prag.adb @@ -16008,7 +16008,6 @@ package body Sem_Prag is end loop Innr; if Citem = N then - Set_Error_Posted (N); Error_Pragma_Arg ("argument of pragma% is not withed unit", Arg); end if; |