Skip to content

Commit e0fb4ba

Browse files
committed
Make sure B_State is initialized before used.
The code is ok, but the compiler may issue a warning about possible use before initialization. Part of TA29-029.
1 parent e2b3714 commit e0fb4ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/templates_parser.adb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5988,7 +5988,8 @@ package body Templates_Parser is
59885988

59895989
when Section_Block =>
59905990
declare
5991-
B_State : array (1 .. State.Blocks_Count) of Block_State;
5991+
B_State : array (1 .. State.Blocks_Count) of Block_State :=
5992+
(others => Empty_Block_State);
59925993
B : Positive;
59935994
Mark : Natural := 0;
59945995
begin

0 commit comments

Comments
 (0)