]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Back out part of previous change -- disable warning
authorBob Duff <duff@adacore.com>
Tue, 1 Oct 2024 20:31:10 +0000 (16:31 -0400)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 25 Oct 2024 09:09:03 +0000 (11:09 +0200)
Temporarily disable the warning, because it breaks
SPARK continuous builder

gcc/ada/ChangeLog:

* sem_ch10.adb (Analyze_With_Clause): Temporarily disable warning.

gcc/ada/sem_ch10.adb

index 6e4280b8f10bbbc46113bdb8157489da110be2fb..202a44eb87c1298d75d38c4ae8fbef147933c9ab 100644 (file)
@@ -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;