Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: minimize warnings in Compiling Crafty on different kind of platforms

Author: Dann Corbit

Date: 07:46:39 10/25/99

Go up one level in this thread


On October 24, 1999 at 17:16:18, Robert Hyatt wrote:
[snip]
>It is basically impossible to write a piece of code that is 100% warning-free
>on all compilers.

I try to get as clean a Lint as possible (using PC-Lint -- LCLint is useful for
finding some things, but about 1/3 of its warnings are just plain stupid).  I
also run the code through GCC at -Wall -ansi -pedantic as GCC has one of the
best error checking fascilities around.

It is clearly true that you can't satisfy all compiler warnings.  Sometimes the
warning is wrong and shutting up the warning by doing what they suggest will
break something!



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.