]> gcc.gnu.org Git - gcc.git/commitdiff
[Ada] Remove an unnecessary local constant
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 28 May 2021 10:53:05 +0000 (12:53 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 9 Jul 2021 12:35:24 +0000 (12:35 +0000)
gcc/ada/

* sem_ch6.adb (Analyze_Expression_Function): A local Expr
constant was shadowing a global constant with the same name and
the same value.

gcc/ada/sem_ch6.adb

index fbb2b55926a3663ee8fa7caaf0a2bf7b0ea102a1..aeb1cad2ac45a7c9f03eceb3d379c9519f1466fd 100644 (file)
@@ -532,7 +532,6 @@ package body Sem_Ch6 is
 
          declare
             Decls : List_Id            := List_Containing (N);
-            Expr  : constant Node_Id   := Expression (Ret);
             Par   : constant Node_Id   := Parent (Decls);
             Typ   : constant Entity_Id := Etype (Def_Id);
 
This page took 0.067166 seconds and 5 git commands to generate.