]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Fix detection of unused warning suppression
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 25 Jul 2022 20:41:21 +0000 (22:41 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 5 Sep 2022 07:21:05 +0000 (09:21 +0200)
commit645d1208bf948aed1d6030ca2e9d1510e7459a95
treea8cd494599973050e8dce6b27331c21dd5002c24
parent95d9823d289fa8fe7be0a299993027f5e6e7824f
[Ada] Fix detection of unused warning suppression

The comment for Warnings_Off says: "clients should generally not test
this flag directly, but instead use function Has_Warnings_Off".

Primarily a code cleanup, as this only affects minor a corner case.

gcc/ada/

* sem_ch13.adb (Validate_Unchecked_Conversions): Use
Has_Warnings_Off.
* sem_elab.adb (Check_Internal_Call_Continue): Likewise.
gcc/ada/sem_ch13.adb
gcc/ada/sem_elab.adb