Author: Dann Corbit
Date: 10:19:12 04/19/02
Go up one level in this thread
On April 19, 2002 at 05:38:16, Gian-Carlo Pascutto wrote:
>On April 19, 2002 at 03:53:35, Dann Corbit wrote:
>> if (pawn_rank[LIGHT][f] == 6); /* pawn hasn't moved */
>> ^
>>eval.c(335) : Warning 7: possible extraneous ';'
>> if (pawn_rank[DARK][f] == 1);
>> ^
>>eval.c(382) : Warning 7: possible extraneous ';'
>
>Is TSCP buggy?
>
>I think this is a very valuable warning, too bad neither
>MSVC, Intel C or gcc don't have it.
Nothing wrong with TSCP. If you look at the code in place, it is obvious.
I tend to do this:
if (pawn_rank[DARK][f] == 1) {;} /* I meant to do that. */
For those bizarre cases where you want the if to do nothing.
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.