]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/ada/ChangeLog
[Ada] Suppress warnings in generic instantiations with pragma Warnings
authorpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Jul 2019 08:16:20 +0000 (08:16 +0000)
committerpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Jul 2019 08:16:20 +0000 (08:16 +0000)
commit9ad4283246617f50767d3780fac41b81f1dfd009
tree9d41066ec8daa918d0b5353a1729880a59a8d7f5
parentf2a8d64edc1329b9e38b6a0c2e1c3c77d5477944
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@272985 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/erroutc.adb