@@ -452,7 +452,7 @@ package body GNATdoc.Comments.Extractor is
452452 Options : GNATdoc.Comments.Options.Extractor_Options)
453453 return not null Structured_Comment_Access is
454454 begin
455- return Result : not null Structured_Comment_Access :=
455+ return Result : constant not null Structured_Comment_Access :=
456456 new Structured_Comment
457457 do
458458 Extract (Node, Options, Result.all );
@@ -1201,9 +1201,9 @@ package body GNATdoc.Comments.Extractor is
12011201 Options : GNATdoc.Comments.Options.Extractor_Options;
12021202 Documentation : in out Structured_Comment'Class)
12031203 is
1204- Definition : Libadalang.Analysis.Task_Def'Class :=
1205- Decl.F_Definition;
1206- Is_Or_With_Token : Token_Reference;
1204+ Definition : constant
1205+ Libadalang.Analysis.Task_Def'Class := Decl.F_Definition;
1206+ Is_Or_With_Token : Token_Reference;
12071207
12081208 Leading_Section : Section_Access;
12091209 Trailing_Section : Section_Access;
@@ -1636,9 +1636,9 @@ package body GNATdoc.Comments.Extractor is
16361636 Line_Index : Positive;
16371637 Amount : VSS.Strings.Character_Count)
16381638 is
1639- Line : Virtual_String := Text (Line_Index);
1640- Iterator : Character_Iterator := Line.At_First_Character;
1641- Count : Character_Count := Amount;
1639+ Line : constant Virtual_String := Text (Line_Index);
1640+ Iterator : Character_Iterator := Line.At_First_Character;
1641+ Count : Character_Count := Amount;
16421642
16431643 begin
16441644 while Iterator.Forward loop
@@ -2075,7 +2075,7 @@ package body GNATdoc.Comments.Extractor is
20752075
20762076 else
20772077 declare
2078- Match : Regular_Expression_Match :=
2078+ Match : constant Regular_Expression_Match :=
20792079 Pattern.Match (Line);
20802080
20812081 begin
@@ -2106,7 +2106,7 @@ package body GNATdoc.Comments.Extractor is
21062106 Section.Text (J);
21072107 Iterator : Character_Iterator :=
21082108 Line.At_First_Character;
2109- Success : Boolean;
2109+ Success : Boolean with Unreferenced ;
21102110
21112111 begin
21122112 if Line.Character_Length > Indent then
0 commit comments