gnugo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnugo-devel] Even more warnings :)


From: Daniel Bump
Subject: Re: [gnugo-devel] Even more warnings :)
Date: Mon, 25 Feb 2002 07:34:05 -0800

> Compiling 3.1.26 on Mac OS X I get a multitude of warnings, more than last 
> time. I've put a file up that shows the entire build process:

These are caused by the non-variadic macros after line 360 in
gnugo.h. Note the comment on line 360:

/* These can cause harmless compiler warnings. */

So we're aware of these. If you want to test, I think the macros
would be more likely to cause problems if you run gnugo -t
-d0x0800 than if you run the regressions. For example load
any sgf file with these options. This should give nice set
of traces including a list of move reasons.

The rationale is that these macros should make the program faster 
by avoiding a function call and so they're worth the compiler
warnings. The line is evaluated for a side effect (the
gprintf call), and the actual value is discarded. If verbose
is false, a function call is avoided. But computing a value
then discarding it generates a warning.

Dan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]