From bcbf83ec10e2ef19d01372ce21fefb3deb3ee8e6 Mon Sep 17 00:00:00 2001 From: Yannick Moy Date: Tue, 8 Feb 2022 18:04:49 +0100 Subject: [PATCH] [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. --- 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 2166ece..1007adc 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; -- 2.7.4