From: Piotr Trojanek <troja...@adacore.com>

Diagnostic entries are not supposed to be modified while compiling the code.
Code cleanup; behavior is unaffected.

gcc/ada/ChangeLog:

        * errid.ads (Diagnostic_Entries): Now a constant.

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

---
 gcc/ada/errid.ads | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/ada/errid.ads b/gcc/ada/errid.ads
index 56516d028bc..acabc3b1dfe 100644
--- a/gcc/ada/errid.ads
+++ b/gcc/ada/errid.ads
@@ -76,7 +76,7 @@ package Errid is
    --    - Optionally additional information
    --    TODO: the mandatory fields for the documentation file could be changed
 
-   Diagnostic_Entries : Diagnostics_Registry_Type :=
+   Diagnostic_Entries : constant Diagnostics_Registry_Type :=
      (No_Diagnostic_Id => <>,
       GNAT0001         =>
         (Status        => Active,
-- 
2.43.0

Reply via email to