diff options
author | squirek <squirek@adacore.com> | 2025-01-13 21:04:51 +0000 |
---|---|---|
committer | Marc Poulhiès <dkm@gcc.gnu.org> | 2025-06-05 10:18:39 +0200 |
commit | abc2efc4fba94bc4043031dc891d45ba9ad10919 (patch) | |
tree | 65988a6422a1d94206199a38b27250195286529e /libstdc++-v3/testsuite/std | |
parent | 35260dd303a1f5c911310f87e7ddc3f1b580abbd (diff) | |
download | gcc-abc2efc4fba94bc4043031dc891d45ba9ad10919.zip gcc-abc2efc4fba94bc4043031dc891d45ba9ad10919.tar.gz gcc-abc2efc4fba94bc4043031dc891d45ba9ad10919.tar.bz2 |
ada: Confusing "modified by call, but value overwritten" warning
The patch fixes an issue in the compiler whereby not referencing a local
variable used in multiple procedure calls as an "out" actual in between
calls would lead to a warning despite "-gnatw.o" not being present.
Additionally, this meant that using pragma Unreferenced on such variables
would not be able to silence such warnings.
gcc/ada/ChangeLog:
* sem_warn.adb
(Warn_On_Useless_Assignment): Disable out value "overwritten" warning
when we are not warning on unread out parameters (e.g. "-gnatw.o").
Diffstat (limited to 'libstdc++-v3/testsuite/std')
0 files changed, 0 insertions, 0 deletions