From: Piotr Trojanek Date: Tue, 20 Oct 2020 08:15:20 +0000 (+0200) Subject: [Ada] Replace warning suppression with assertion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c9e2eeb5034fd3e2f262963ca5e2fd72667b3865;p=gcc.git [Ada] Replace warning suppression with assertion gcc/ada/ * sem_res.adb (Resolve_Membership_Op): Replace pragma Warnings with pragma Assert. --- 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);