]> gcc.gnu.org Git - gcc.git/commit
ada: Adjust number of errors when removing warning in dead code
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 7 Nov 2022 14:17:40 +0000 (15:17 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 22 Nov 2022 12:34:51 +0000 (13:34 +0100)
commit29b7e00589f1c1c00029928ac1b7ba8ff53288f5
tree4cd3d32c2f0036a9665908336675f3ca0c4cad47
parent3b5f3138dceeac609b4c5fe33009302d13592400
ada: Adjust number of errors when removing warning in dead code

When a warning about a runtime exception is emitted for a code in
generic instance, we add continuation warnings "in instantiation ..."
and only the original message increase the total number of errors.

When removing these messages, e.g. after detecting that the code inside
generic instance is dead, we must decrease the total number of errors,
as otherwise the compiler exit status might stop gnatmake or gprbuild.

gcc/ada/

* errout.adb (To_Be_Removed): Decrease total number of errors when
removing a warning that has been escalated into error.
* erroutc.adb (dmsg): Print Warn_Runtime_Raise flag.
gcc/ada/errout.adb
gcc/ada/erroutc.adb
This page took 0.071848 seconds and 5 git commands to generate.