From c9e2eeb5034fd3e2f262963ca5e2fd72667b3865 Mon Sep 17 00:00:00 2001 From: Piotr Trojanek Date: Tue, 20 Oct 2020 10:15:20 +0200 Subject: [PATCH] [Ada] Replace warning suppression with assertion gcc/ada/ * sem_res.adb (Resolve_Membership_Op): Replace pragma Warnings with pragma Assert. --- gcc/ada/sem_res.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ada/sem_res.adb b/gcc/ada/sem_res.adb index a7eacbc3419..ba91a62f57d 100644 --- 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); -- 2.30.2