This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Restriction warning messages are now tagged [restriction warning] if -gnatw.d is used, instead of [enabled by default]. This new tag can be used in pragma Warning_As_Errors. The following is compiled with -gnatw.d -gnatj50 -gnatl 1. pragma Warning_As_Error ("[restriction warning]"); 2. pragma Restriction_Warnings (No_Wide_Characters); 3. package RWarnTag is 4. X : Wide_Wide_Character := 'X'; | >>> error: violation of restriction "No_Wide_Characters" at line 2 [restriction warning] [warning-as-error] 5. end; Tested on x86_64-pc-linux-gnu, committed on trunk 2014-05-21 Robert Dewar <dewar@adacore.com> * errout.adb (Set_Msg_Insertion_Warning): Handle ?*? (restriction warning) case. * errout.ads: Document ?*? (restriction warning) insertion. * erroutc.adb (Get_Warning_Tag): Deal with ?*? (restriction warning) case. * erroutc.ads: Document use of * for restriction warning tag. * restrict.adb (Restriction_Msg): Tag with ?*? instead of ??.
Attachment:
difs
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |