[COMMITTED,26/35] ada: Back out part of previous change -- disable warning

Message ID 20241025091107.485741-26-poulhies@adacore.com
State Committed
Commit 12d625e3f01cfe375320aef4ff8095c50b91d709
Headers
Series [COMMITTED,01/35] ada: Pass parameters of full access unconstrained array types by copy in calls |

Commit Message

Marc Poulhiès Oct. 25, 2024, 9:10 a.m. UTC
  From: Bob Duff <duff@adacore.com>

Temporarily disable the warning, because it breaks
SPARK continuous builder

gcc/ada/ChangeLog:

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

Tested on x86_64-pc-linux-gnu, committed on master.

---
 gcc/ada/sem_ch10.adb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Patch

diff --git a/gcc/ada/sem_ch10.adb b/gcc/ada/sem_ch10.adb
index 6e4280b8f10..202a44eb87c 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;