Date: Tue, 23 Jun 1998 10:17:44 +0300 (IDT) From: Eli Zaretskii To: Erik Max Francis cc: djgpp AT delorie DOT com Subject: Re: Program Crashes!!! Please help! Memory errors!!! In-Reply-To: <358F35FE.7E80050C@alcyone.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Mon, 22 Jun 1998, Erik Max Francis wrote: > > - Always compile programs with at least the flags '-Wall' and '-O'; > > the compiler can catch lots of mistakes if you let it. > > The optimization flag -O will catch more mistakes? Yes, at least with GCC. Some problems are only diagnosed when the compiler performs flow of control analysis, which is only done when you request optimizations. One notable example is the warning about unused variables, which is only issued with -O.