From b22c01db9a8cbc4030af4353a7b4d01be2c6123f Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Tue, 2 Apr 2024 10:51:00 +0200 Subject: [PATCH] ada: Follow-up fix to previous change for Text_Ptr The variable would be saved and restored while still uninitialized. gcc/ada/ * err_vars.ads (Error_Msg_Sloc): Initialize to No_Location. --- gcc/ada/err_vars.ads | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ada/err_vars.ads b/gcc/ada/err_vars.ads index 113dd936db6..838217b95f4 100644 --- a/gcc/ada/err_vars.ads +++ b/gcc/ada/err_vars.ads @@ -107,7 +107,7 @@ package Err_Vars is -- WARNING: There is a matching C declaration of these variables in fe.h - Error_Msg_Sloc : Source_Ptr; + Error_Msg_Sloc : Source_Ptr := No_Location; -- Source location for # insertion character in message Error_Msg_Name_1 : Name_Id; -- 2.47.2