From: Bob Duff Date: Tue, 1 Oct 2024 20:31:10 +0000 (-0400) Subject: ada: Back out part of previous change -- disable warning X-Git-Tag: basepoints/gcc-16~4902 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12d625e3f01cfe375320aef4ff8095c50b91d709;p=thirdparty%2Fgcc.git ada: Back out part of previous change -- disable warning Temporarily disable the warning, because it breaks SPARK continuous builder gcc/ada/ChangeLog: * sem_ch10.adb (Analyze_With_Clause): Temporarily disable warning. --- diff --git a/gcc/ada/sem_ch10.adb b/gcc/ada/sem_ch10.adb index 6e4280b8f10b..202a44eb87c1 100644 --- a/gcc/ada/sem_ch10.adb +++ b/gcc/ada/sem_ch10.adb @@ -3039,7 +3039,8 @@ package body Sem_Ch10 is -- Self-referential withs are always useless, so warn - if Warn_On_Redundant_Constructs then + if Warn_On_Redundant_Constructs and then False then -- ??? + -- Disable for now, because it breaks SPARK builds Error_Msg_N ("unnecessary with of self?r?", N); end if;