[Ada] Fix strange warning when using Ada.Iterator_Interface
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 9 Oct 2018 15:06:21 +0000 (15:06 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 9 Oct 2018 15:06:21 +0000 (15:06 +0000)
commit865234bf36f1bf8274c3e970f32a8bfb16e96771
tree6796fc117e2a91f77eb6bf252eb289c25cd0454a
parentfd40a157ba7f2e703570dd83feea84ef3b07fff1
[Ada] Fix strange warning when using Ada.Iterator_Interface

The back-end was recently changed to issue more -Wuninitialized warnings
on Out parameters and this has caught a case related to
Ada.Iterator_Interface.: This patchlet simply kills this uninteresting
warning.

2018-10-09  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

* exp_disp.adb (Make_Disp_Asynchronous_Select_Spec): Set
Warnings_Off on the B out parameter.

gcc/testsuite/

* gnat.dg/warn17.adb: New testcase.

From-SVN: r264977
gcc/ada/ChangeLog
gcc/ada/exp_disp.adb
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/warn17.adb [new file with mode: 0644]