Add boolean version of Warnings_Suppressed in Ada
The commit introduces a boolean overload of `Warnings_Suppressed` in Ada to simplify checking for suppressed warnings.
This commit introduces a boolean overload for the Warnings_Suppressed function in Ada. This new overload simplifies code by allowing developers to check if warnings are suppressed at a specific location without needing to know the reason for the suppression. This improves code readability and reduces complexity in error handling.
In Details
A new Boolean overload of Warnings_Suppressed is added in erroutc.ads. This simplifies call sites in errout.adb and errutil.adb that only need to know if warnings are suppressed, rather than the specific String_Id reason. This is a minor API improvement within the Ada error handling subsystem.
For Context
This commit improves the error handling mechanisms in the Ada compiler. Compilers often suppress warnings in certain situations to avoid overwhelming the user with irrelevant messages. The Warnings_Suppressed function allows the compiler to check if warnings should be suppressed at a particular location in the code. This change provides a simplified way to check for warning suppression, making the code cleaner.