aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2022-11-07 15:17:40 +0100
committerMarc Poulhiès <poulhies@adacore.com>2022-11-22 13:34:51 +0100
commit29b7e00589f1c1c00029928ac1b7ba8ff53288f5 (patch)
tree4cd3d32c2f0036a9665908336675f3ca0c4cad47 /libcpp
parent3b5f3138dceeac609b4c5fe33009302d13592400 (diff)
downloadgcc-29b7e00589f1c1c00029928ac1b7ba8ff53288f5.zip
gcc-29b7e00589f1c1c00029928ac1b7ba8ff53288f5.tar.gz
gcc-29b7e00589f1c1c00029928ac1b7ba8ff53288f5.tar.bz2
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.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions