public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-6295] [Ada] Suppress spurious CodePeer check on generic actual subprogram
@ 2022-01-06 17:13 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-01-06 17:13 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:f64a1bfaddab7d272224b80560f3a64dae28d6ea
commit r12-6295-gf64a1bfaddab7d272224b80560f3a64dae28d6ea
Author: Piotr Trojanek <trojanek@adacore.com>
Date: Fri Dec 3 15:52:34 2021 +0100
[Ada] Suppress spurious CodePeer check on generic actual subprogram
gcc/ada/
* treepr.adb (Destroy): Prevent spurious check from CodePeer.
Diff:
---
gcc/ada/treepr.adb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/ada/treepr.adb b/gcc/ada/treepr.adb
index b6a652545ef..c1e71b18b44 100644
--- a/gcc/ada/treepr.adb
+++ b/gcc/ada/treepr.adb
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-06 17:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-06 17:13 [gcc r12-6295] [Ada] Suppress spurious CodePeer check on generic actual subprogram Pierre-Marie de Rodat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).