projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e94b24
)
[Ada] Replace warning suppression with assertion
author
Piotr Trojanek
<trojanek@adacore.com>
Tue, 20 Oct 2020 08:15:20 +0000
(10:15 +0200)
committer
Pierre-Marie de Rodat
<derodat@adacore.com>
Thu, 26 Nov 2020 08:39:55 +0000
(
03:39
-0500)
gcc/ada/
* sem_res.adb (Resolve_Membership_Op): Replace pragma Warnings
with pragma Assert.
gcc/ada/sem_res.adb
patch
|
blob
|
history
diff --git
a/gcc/ada/sem_res.adb
b/gcc/ada/sem_res.adb
index a7eacbc341955b540877c94fffd43fcfb86677b6..ba91a62f57d53a3c4314fce0f29933014fd5068c 100644
(file)
--- a/
gcc/ada/sem_res.adb
+++ b/
gcc/ada/sem_res.adb
@@
-9619,7
+9619,7
@@
package body Sem_Res is
-- universal types applies.
procedure Resolve_Membership_Op (N : Node_Id; Typ : Entity_Id) is
- pragma
Warnings (Off, Typ
);
+ pragma
Assert (Is_Boolean_Type (Typ)
);
L : constant Node_Id := Left_Opnd (N);
R : constant Node_Id := Right_Opnd (N);