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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,17e99293e94a7e6f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-31 09:05:20 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14feed!worldnet.att.net!206.191.82.230!prairie.attcanada.net!newsfeed.attcanada.net!204.71.34.3!newsfeed.cwix.com!newsfeed.vmunix.org!newsfeed.stueberl.de!uucp.gnuu.de!newsfeed.arcor-online.net!news.arcor.de!not-for-mail From: als@usenet.thangorodrim.de (Alexander Schreiber) Newsgroups: comp.lang.ada Subject: Re: Another ammunition References: Organization: Not all that much Reply-To: als@usenet.thangorodrim.de Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit User-Agent: slrn/0.9.6.2 (Linux) Date: Tue, 31 Dec 2002 17:23:37 +0100 NNTP-Posting-Date: 31 Dec 2002 18:05:18 MET NNTP-Posting-Host: 145.254.187.245 X-Trace: DXC=ooX8haBk[jVgQ;OFXR3=FU:ejgIfPPldTjW\KbG]kaMXAV6U:Z=fE=_LfC0CU3NELZH>30QU5b\OX4cX5XJ>M@X_ X-Complaints-To: abuse@arcor-online.net Xref: archiver1.google.com comp.lang.ada:32411 Date: 2002-12-31T18:05:18+01:00 List-Id: Jean-Pierre Rosen wrote: > >"Eric G. Miller" a �crit dans le message news: IpfQ9.4953 >> > It took a week to understand what was happenning. Would not have passed the >> > first compilation in Ada. FWIW... >> >> You're right, but I'm sure gcc could have immediately diagnosed the >> problem had you turned up the warnings ("conflicting types for...", "previous >> declaration of ..."). >> >Warnings were on, he just overlooked them.... >That's what makes a huge difference between a warning which is up to the good will of the compiler (and the programmer paying >attention to it), and a *required* compile time error! For gcc, there is always the "anal retentive mode": run it with basically _all_ warnings turned on _and_ any warning considered as error (aborting the compile): -ansi -Wall -pedantic -Wtraditional -Wpointer-arith -Wshadow -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Waggregate-return -Wmissing-declarations -Wnested-externs -Winline -Werror -W Forces you to fix the simple bugs to even get your code to compile (leaving you to be more creative in creating tricky logic bugs). Regards, Alex. -- "Opportunity is missed by most people because it is dressed in overalls and looks like work." -- Thomas A. Edison