]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Fix clang warning on unused variable
[stockfish] / src / evaluate.cpp
index 4f3843f864fcf9343b338a1ef664a4da3a54ab6f..923564cbfe8b4ff41af8eda5b1aa1e4ceb8bfbed 100644 (file)
@@ -108,6 +108,7 @@ namespace Eval {
 
                 MemoryBuffer buffer(const_cast<char*>(reinterpret_cast<const char*>(gEmbeddedNNUEData)),
                                     size_t(gEmbeddedNNUESize));
+                (void) gEmbeddedNNUEEnd; // Silence warning on unused variable
 
                 istream stream(&buffer);
                 if (load_eval(eval_file, stream))
@@ -1069,8 +1070,8 @@ make_v:
         && pos.piece_on(SQ_G7) == B_PAWN)
         correction += CorneredBishop;
 
-    return pos.side_to_move() == WHITE ?  Value(5 * correction)
-                                       : -Value(5 * correction);
+    return pos.side_to_move() == WHITE ?  Value(3 * correction)
+                                       : -Value(3 * correction);
   }
 
 } // namespace Eval