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,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!newsfeed.straub-nv.de!open-news-network.org!noris.net!nntp.ilk.net!not-for-mail From: Markus Schoepflin Newsgroups: comp.lang.ada Subject: Make specific warning error with gnat? Date: Thu, 01 Jul 2010 12:13:37 +0200 Organization: Customer of ILK Internet GmbH, Karlsruhe, Germany Message-ID: NNTP-Posting-Host: csdc.comsoft.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nntp.ilk.net 1277979217 32468 212.86.205.70 (1 Jul 2010 10:13:37 GMT) X-Complaints-To: usenet@ilk.net NNTP-Posting-Date: Thu, 1 Jul 2010 10:13:37 +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 Xref: g2news2.google.com comp.lang.ada:13048 Date: 2010-07-01T12:13:37+02:00 List-Id: Hello, I seem to remember that with gnat it was possible to turn a specific warning into an error. I couldn't find anything in the docs, now I'm not sure if this really was gnat or some other compiler which offered this feature. Anyway, what I want is a compile time error for the warning "Constraint_Error" will be raised at run time. Is this possible with gnat without turning all warnings into errors? Regards, Markus