From: Piotr Trojanek Date: Tue, 7 Dec 2021 19:16:02 +0000 (+0100) Subject: [Ada] Remove unreferenced Warn_On_Instance X-Git-Tag: basepoints/gcc-13~2005 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=00a66280cdafe17ad76944baac6fb7d0ae83e802;p=thirdparty%2Fgcc.git [Ada] Remove unreferenced Warn_On_Instance gcc/ada/ * err_vars.ads (Warn_On_Instance): Remove; it was a relic from the previous handling of warning in instances that was removed decades ago. --- diff --git a/gcc/ada/err_vars.ads b/gcc/ada/err_vars.ads index 819d1ad9ad35..55fd5f3a15b8 100644 --- a/gcc/ada/err_vars.ads +++ b/gcc/ada/err_vars.ads @@ -61,14 +61,6 @@ package Err_Vars is -- not get reset by any Error_Msg call, so the caller is responsible -- for resetting it. - Warn_On_Instance : Boolean := False; - -- Normally if a warning is generated in a generic template from the - -- analysis of the template, then the warning really belongs in the - -- template, and the default value of False for this Boolean achieves - -- that effect. If Warn_On_Instance is set True, then the warnings are - -- generated on the instantiation (referring to the template) rather - -- than on the template itself. - Raise_Exception_On_Error : Nat := 0; -- If this value is non-zero, then any attempt to generate an error -- message raises the exception Error_Msg_Exception, and the error