Hello there,
Gcc has recently been extended with the warning for xor
used as pow. So:
1.
mkpat.c:1939:51: warning: result of '2^2' is 0; did you mean '1 << 2' (4)?
[-Wxor-used-as-pow]
Source code is
int xor_att = (el[k].color == color ? ATT_O ^ ATT_O : ATT_O ^ ATT_X);
I assume you meant
int xor_att = (el[k].color == color) ? (ATT_O ^ ATT_O) : (ATT_O ^ ATT_X);
2.
mkpat.c:2005:55: warning: result of '2^1' is 3; did you mean '1 << 1' (2)?
[-Wxor-used-as-pow]
Duplicate.
Regards
David Binderman
_______________________________________________
gnugo-devel mailing list
gnugo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/gnugo-devel