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=-2.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e01fe1b326df26d4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!w3bhost.de!exabot.com!freenix!news.enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Marius Amado Alves Newsgroups: comp.lang.ada Subject: Re: Division by zero Date: Mon, 13 Jun 2005 09:54:44 +0100 Organization: Cuivre, Argent, Or Message-ID: References: <42aca05a$0$24379$9b4e6d93@newsread2.arcor-online.net> <9wbre.6940$U4.992923@news.xtra.co.nz> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1118652931 99757 212.85.156.195 (13 Jun 2005 08:55:31 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Mon, 13 Jun 2005 08:55:31 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: In-Reply-To: <9wbre.6940$U4.992923@news.xtra.co.nz> X-Mailer: Apple Mail (2.622) X-Virus-Scanned: by amavisd-new at dcc.fc.up.pt X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:11309 Date: 2005-06-13T09:54:44+01:00 On 13 Jun 2005, at 09:34, Lurker wrote: > "Georg Bauhaus" wrote in message > news:42aca05a$0$24379$9b4e6d93@newsread2.arcor-online.net... >> You could request more warnings: >> >> $ gnatgcc -c -gnatv -gnatwa x.adb >> >> GNAT 3.4.4 20050314 (prerelease) (Debian 3.4.3-13) Copyright 1992-2004 > Free Software Foundation, Inc. >> >> Compiling: x.adb (source file time stamp: 2005-06-12 22:47:07) >> >> 9. return a/some_constant; -- line 2 >> | >>>>> warning: division by zero >>>>> warning: "Constraint_Error" will be raised at run time > > That's a new one for me. Yes - that's exactly what I would expect. > However, not everyone is running Debian and there were other > posters in this group who confirmed that Windows version doesn't > flag it as a warning even with full warnings on. Indeed. *Mac* version. $ gnatmake -gnatv -gnatwa x -f gcc -c -gnatv -gnatwa x.adb GNAT 3.3 20040913 (GNAT for Mac OS X build 1650) Copyright 1992-2002 Free Software Foundation, Inc. Compiling: x.adb (source file time stamp: 2005-06-13 08:47:40) 11 lines: No errors $