Use of pragma Warning with a string literal to set warning
switches, should not impact GNATprove which is not subject
to these switches.
gcc/ada/
* sem_prag.adb (Analyze_Pragma): Ignore one variant of pragma
Warnings in GNATprove mode.
("argument of pragma% must be On/Off or static string "
& "expression", Arg1);
+ -- Use of pragma Warnings to set warning switches is
+ -- ignored in GNATprove mode, as these switches apply to
+ -- the compiler only.
+
+ elsif GNATprove_Mode then
+ null;
+
-- One argument string expression case
else