Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: An advice to all programmers:

Author: Severi Salminen

Date: 00:13:39 12/07/01

Go up one level in this thread


>What I generally do is try to silence the warnings by rewriting my code
>as long as it is possible. Most of the time it is easy and it results in a
>safer, cleaner and more readable code (at least for me). When I can't, I include
>a local #pragma that I disable immediately after. Generally, I do not need this
>many times. Now, I have only one pragma valid for one line in my entire souce.
>I am pretty sure that I have more undetected bugs that pragmas :-)

Funny thing is that when I yesterday removed the #pragma, I saw only this one
warning, and that was the one causing the bug. So I had fixed all the warnings I
had disabled already and didn't even know that... Well, now I swear that I won't
disable any warning ever again.

Severi



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.