From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,71d79ed4fdc42ae2 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!feeder.news-service.com!feeder.erje.net!newsfeed.velia.net!noris.net!nntp.ilk.net!not-for-mail From: Markus Schoepflin Newsgroups: comp.lang.ada Subject: Re: Make specific warning error with gnat? Date: Mon, 05 Jul 2010 10:16:24 +0200 Organization: Customer of ILK Internet GmbH, Karlsruhe, Germany Message-ID: References: <82mxuaxmb1.fsf@stephe-leake.org> <4c2e4d14$0$6769$9b4e6d93@newsspool3.arcor-online.net> NNTP-Posting-Host: csdc.comsoft.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: nntp.ilk.net 1278317785 4012 212.86.205.70 (5 Jul 2010 08:16:25 GMT) X-Complaints-To: usenet@ilk.net NNTP-Posting-Date: Mon, 5 Jul 2010 08:16:25 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 In-Reply-To: <4c2e4d14$0$6769$9b4e6d93@newsspool3.arcor-online.net> Xref: g2news2.google.com comp.lang.ada:13154 Date: 2010-07-05T10:16:24+02:00 List-Id: Am 02.07.2010 22:33, schrieb Georg Bauhaus: > On 7/2/10 11:44 AM, Markus Schoepflin wrote: > >> I neither have the time nor the resources available to fix all of them, >> nor am I allowed to do so. But if the compiler already knows that there >> will be a constraint error at runtime, I would have liked the >> compilation to fail. > > (I can't think of a way to do this without annotating each > occurrence in the source program: some programs might want > the constraint_error to be produced for whatever reason ...) I'm sure some programs may want to raise constraint errors in their normal course of action, but I'm also sure it's always an error if one of the programs I'm dealing with statically raises a constraint error. By the way, I found the compiler I had in mind in the first place. It was DEC's/Compaq's/HP's cxx compiler for Tru64. It had very elaborate features for message control. Each type of message had a unique tag and number, and you could redefine the severity of most messages by using the option -msg_ , where severity is one of inform, warn, error, enable, disable. So if constraint error would have had the tag CONSER for example, I could have said -msg_error CONSER, et voil�, mission accomplished. > Anyway, grep has helped me scan traces of output and trigger > actions accordingly, that should be a workaround. > I understand GPS is programmable, so maybe the log console > has hooks this sort of special case? Yes, I think a grep output filter will be the way to go in my case. Markus