[Ada] Suppress spurious CodePeer check on generic actual subprogram
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 3 Dec 2021 14:52:34 +0000 (15:52 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 6 Jan 2022 17:11:32 +0000 (17:11 +0000)
gcc/ada/

* treepr.adb (Destroy): Prevent spurious check from CodePeer.

gcc/ada/treepr.adb

index b6a6525..c1e71b1 100644 (file)
@@ -84,6 +84,8 @@ package body Treepr is
    --  Simple Hash function for Node_Ids, List_Ids and Elist_Ids
 
    procedure Destroy (Value : in out Nat) is null;
+   pragma Annotate (CodePeer, False_Positive, "unassigned parameter",
+                    "in out parameter is required to instantiate generic");
    --  Dummy routine for destroing hashed values
 
    package Serial_Numbers is new Dynamic_Hash_Tables