X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fvalue.h;h=4f19cdaa554b64f29a2d9c820dd1e2c77012f632;hp=3d23f5054c3f71c726ca2b387a6c57ec99c99923;hb=12aeac5e148ff842ed80a62db6c7a6c6c99a92ed;hpb=734fb9a13b75a2c52c04352bc508b6a71e3f9300 diff --git a/src/value.h b/src/value.h index 3d23f505..4f19cdaa 100644 --- a/src/value.h +++ b/src/value.h @@ -55,7 +55,7 @@ enum Value { /// Score struct keeps a midgame and an endgame value in a single /// ScoreValue 64 bit union. -enum Score; +enum Score {}; inline Value eg_value(Score s) { return Value(int16_t(s & 0xffff)); } inline Value mg_value(Score s) { return Value((int(s) + 32768) >> 16); }