[Ada] Remove unused initial value in Read_Library_Info_From_Full

Message ID 20210506075812.GA125573@adacore.com
State New
Headers show
Series
  • [Ada] Remove unused initial value in Read_Library_Info_From_Full
Related show

Commit Message

Pierre-Marie de Rodat May 6, 2021, 7:58 a.m.
Remove an initial value of a local variable that were never used. Static
analysis tools like CodePeer should easily recognize that this variable
is only accessed after being written.

Tested on x86_64-pc-linux-gnu, committed on trunk

gcc/ada/

	* osint.adb (Read_Library_Info_From_Full): Cleanup unused
	initial value.

Patch

diff --git a/gcc/ada/osint.adb b/gcc/ada/osint.adb
--- a/gcc/ada/osint.adb
+++ b/gcc/ada/osint.adb
@@ -2564,7 +2564,7 @@  package body Osint is
       --  Read data from the file
 
       declare
-         Actual_Len : Integer := 0;
+         Actual_Len : Integer;
 
          Lo : constant Text_Ptr := 0;
          --  Low bound for allocated text buffer