Pragma Annotate for CodePeer must immediately follow the designated line.
Tested on x86_64-pc-linux-gnu, committed on trunk
gcc/ada/
* libgnat/s-valuer.adb (Scan_Raw_Real): Move pragma Annotate around
and adjust its parameters.
diff --git a/gcc/ada/libgnat/s-valuer.adb b/gcc/ada/libgnat/s-valuer.adb
--- a/gcc/ada/libgnat/s-valuer.adb
+++ b/gcc/ada/libgnat/s-valuer.adb
@@ -428,10 +428,10 @@ package body System.Value_R is
-- First character can be either a decimal digit or a dot
if Str (Index) in '0' .. '9' then
- After_Point := False;
-
pragma Annotate
- (CodePeer, Intentional, "test always true", "defensive code below");
+ (CodePeer, False_Positive, "test always true", "defensive code");
+
+ After_Point := False;
-- If this is a digit it can indicates either the float decimal
-- part or the base to use.