public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-354] [Ada] Adapt CodePeer analysis of GNAT to changes in dependencies
@ 2022-05-12 12:40 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-05-12 12:40 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:bcbf83ec10e2ef19d01372ce21fefb3deb3ee8e6

commit r13-354-gbcbf83ec10e2ef19d01372ce21fefb3deb3ee8e6
Author: Yannick Moy <moy@adacore.com>
Date:   Tue Feb 8 18:04:49 2022 +0100

    [Ada] Adapt CodePeer analysis of GNAT to changes in dependencies
    
    New dependencies in s-imagei are causing issues for CodePeer analysis
    of GNAT source and libs. Updating the setup.
    
    gcc/ada/
    
            * libgnat/s-imagef.adb: Justify false message from CodePeer.

Diff:
---
 gcc/ada/libgnat/s-imagef.adb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/ada/libgnat/s-imagef.adb b/gcc/ada/libgnat/s-imagef.adb
index 2166ece6be9..1007adc085d 100644
--- a/gcc/ada/libgnat/s-imagef.adb
+++ b/gcc/ada/libgnat/s-imagef.adb
@@ -433,6 +433,8 @@ package body System.Image_F is
          Digs (1 .. 2) := " 0";
          Ndigs := 2;
       end if;
+      pragma Annotate (CodePeer, False_Positive, "test always true",
+                       "no digits were output for zero");
 
       Set_Decimal_Digits (Digs, Ndigs, S, P, Scale, Fore, Aft, Exp);
    end Set_Image_Fixed;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-12 12:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-12 12:40 [gcc r13-354] [Ada] Adapt CodePeer analysis of GNAT to changes in dependencies 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).