comp.lang.ada
 help / color / mirror / Atom feed
From: als@usenet.thangorodrim.de (Alexander Schreiber)
Subject: Re: Another ammunition
Date: Tue, 31 Dec 2002 17:23:37 +0100
Date: 2002-12-31T18:05:18+01:00	[thread overview]
Message-ID: <slrnb13h49.leo.als@thangorodrim.de> (raw)
In-Reply-To: aus3vq$k57$1@s1.read.news.oleane.net

Jean-Pierre Rosen <rosen@adalog.fr> wrote:
>
>"Eric G. Miller" <egm2.NOSPAM@jps-NOSPAM.net> 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



  reply	other threads:[~2002-12-31 16:23 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-31 10:23 Another ammunition Jean-Pierre Rosen
2002-12-31 11:43 ` Eric G. Miller
2002-12-31 12:57   ` Jean-Pierre Rosen
2002-12-31 16:23     ` Alexander Schreiber [this message]
2003-01-02  6:55       ` AG
2003-01-01 16:58         ` Alexander Schreiber
2003-01-07 12:54           ` Peter Hermann
2003-01-07 13:21           ` Richard Riehle
2003-01-11 18:29             ` Alexander Schreiber
2003-01-13  2:11               ` u.r. faust
2003-01-12 12:44                 ` Larry Kilgallen
2003-01-14  1:24                   ` Georg Bauhaus
2003-01-03  9:50         ` Jean-Pierre Rosen
2003-01-03 15:24         ` Stephen Leake
2002-12-31 16:40     ` Warren W. Gay VE3WWG
2003-01-04 20:17       ` David Thompson
2003-01-06 17:39         ` Warren W. Gay VE3WWG
2003-01-06 20:50           ` Stephen Leake
2003-01-06 22:16             ` Warren W. Gay VE3WWG
2003-01-07 18:37               ` Stephen Leake
2003-01-07 21:55                 ` Warren W. Gay VE3WWG
2003-01-01  9:05 ` Michael Erdmann
2003-01-07 13:03   ` Peter Hermann
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox