[Ada] Spurious warning on call with out parameter in expression function
authorEd Schonberg <schonberg@adacore.com>
Thu, 10 Oct 2019 15:25:13 +0000 (15:25 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 10 Oct 2019 15:25:13 +0000 (15:25 +0000)
commit4e866f08452aee2747a93f416ff1eb7b86d9f32e
tree29ff2c09c661367728c90259beb3afebfe3cb45d
parent6c142b14a07b166fcb2809cd3c3fcd59a748ce7e
[Ada] Spurious warning on call with out parameter in expression function

2019-10-10  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

* sem_warn.adb (Warn_On_Useless_Assignment): Do not warn if the
second assignment is at the same source position as the first.

From-SVN: r276831
gcc/ada/ChangeLog
gcc/ada/sem_warn.adb