]> git.sesse.net Git - stockfish/blobdiff - src/value.h
Score definition gives a compile error under gcc
[stockfish] / src / value.h
index 3d23f5054c3f71c726ca2b387a6c57ec99c99923..4f19cdaa554b64f29a2d9c820dd1e2c77012f632 100644 (file)
@@ -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); }