public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Pierre-Marie de Rodat <pmderodat@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-6295] [Ada] Suppress spurious CodePeer check on generic actual subprogram
Date: Thu,  6 Jan 2022 17:13:17 +0000 (GMT)	[thread overview]
Message-ID: <20220106171317.03C673858035@sourceware.org> (raw)

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


                 reply	other threads:[~2022-01-06 17:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220106171317.03C673858035@sourceware.org \
    --to=pmderodat@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).