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]

[Ada] Don't delete real errors with specific warning control


The pragma Warnings (Off, msg) is intended only to delete warnings,
but it was deleting real errors as well. This patch corrects that
mistake.

The following compiles with the indicated message (previously
this message was suppressed).

     1. procedure ErrMsgDelete is
     2.    X : Integer;
     3. begin
     4.    pragma Warnings (Off, "*universal*");
     5.    X := 1.0;
                |
        >>> expected type "Standard.Integer"
        >>> found type universal real

     6.    pragma Warnings (On, "*universal*");
     7. end;

Tested on x86_64-pc-linux-gnu, committed on trunk

2013-09-10  Robert Dewar  <dewar@adacore.com>

	* errout.adb (Finalize): Don't delete real errors with specific
	warning control.

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]