]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Avoid warnings regarding rep clauses in generics -- follow-on
authorBob Duff <duff@adacore.com>
Fri, 5 Nov 2021 12:54:23 +0000 (08:54 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 10 Nov 2021 08:57:42 +0000 (08:57 +0000)
gcc/ada/

* repinfo.adb (List_Component_Layout): Initialize Sbit.

gcc/ada/repinfo.adb

index a11057a1a4921ebdf8654e2d56acc3802baff287..75af649e166e86e1b334caf45f4ba61fba7af65f 100644 (file)
@@ -1123,7 +1123,7 @@ package body Repinfo is
          Npos  : constant Uint := Normalized_Position (Ent);
          Fbit  : constant Uint := Normalized_First_Bit (Ent);
          Spos  : Uint;
-         Sbit  : Uint;
+         Sbit  : Uint := No_Uint;
          Lbit  : Uint;
 
       begin