[Ada] Suppress warnings in generic instantiations with pragma Warnings
authorYannick Moy <moy@adacore.com>
Wed, 3 Jul 2019 08:16:20 +0000 (08:16 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Wed, 3 Jul 2019 08:16:20 +0000 (08:16 +0000)
commit3f3dbb7b933c051e58544c8f3f98f587b498e5f5
tree9d41066ec8daa918d0b5353a1729880a59a8d7f5
parent10aea826dae5e3bc306dc74b4aea9df830a3c96c
[Ada] Suppress warnings in generic instantiations with pragma Warnings

Warnings issued by GNAT or GNATprove inside generic instantiations can
now be suppressed by using pragma Warnings Off/On around the instance.
This has mostly an effect on GNATprove, since GNAT typically does not
issue warnings on instantiations, only on the generic code itself.

2019-07-03  Yannick Moy  <moy@adacore.com>

gcc/ada/

* erroutc.adb (Sloc_In_Range): New function to determine whether
the range of a pragma Warnings covers a location, taking
instantiations into account.

From-SVN: r272985
gcc/ada/ChangeLog
gcc/ada/erroutc.adb