[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] gnugo-3.8 bug report
From: |
David Binderman |
Subject: |
[gnugo-devel] gnugo-3.8 bug report |
Date: |
Wed, 7 Sep 2022 15:32:37 +0000 |
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] gnugo-3.8 bug report,
David Binderman <=