gnugo-devel
[Top][All Lists]
Advanced

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

Re: [gnugo-devel] I stepped on a bug


From: Gunnar Farnebäck
Subject: Re: [gnugo-devel] I stepped on a bug
Date: Sun, 09 Oct 2005 10:34:30 +0200
User-agent: EMH/1.14.1 SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/21.3 (sparc-sun-solaris2.9) MULE/5.0 (SAKAKI)

Arend wrote:
> I have more or less completed this conversion, see the patches in ticket
> 31: http://trac.gnugo.org/gnugo/ticket/31. While doing this, I found
> -Wconversion pretty helpful:
> 
> [...]
> 
> Does anyone see a reason not to set this for GNU Go? (After my changes,
> GNU Go again compiles without warnings with -Wconversion included.)

Really? If I do "make clean; make CC='gcc -Wconversion'" I get tons of
warnings, like

genmove.c: In function 'genmove':
genmove.c:244: warning: passing argument 2 of 'do_genmove' as 'float' rather 
than 'double' due to prototype
genmove.c: In function 'genmove_conservative':
genmove.c:259: warning: passing argument 2 of 'do_genmove' as 'float' rather 
than 'double' due to prototype
genmove.c: In function 'genmove_restricted':
genmove.c:266: warning: passing argument 2 of 'do_genmove' as 'float' rather 
than 'double' due to prototype
genmove.c: In function 'do_genmove':
genmove.c:367: warning: passing argument 2 of 'choose_strategy' as 'float' 
rather than 'double' due to prototype
genmove.c:367: warning: passing argument 3 of 'choose_strategy' as 'float' 
rather than 'double' due to prototype
genmove.c:412: warning: passing argument 2 of 'revise_thrashing_dragon' as 
'float' rather than 'double' due to prototype
genmove.c:412: warning: passing argument 3 of 'revise_thrashing_dragon' as 
'float' rather than 'double' due to prototype
genmove.c:427: warning: passing argument 4 of 'review_move_reasons' as 'float' 
rather than 'double' due to prototype

Since we are consistently using prototypes I can't see any possible
benefits from these warnings.

/Gunnar




reply via email to

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