From: Marco Costalba Date: Sat, 13 Jul 2013 11:02:40 +0000 (+0200) Subject: Fix build with MSVC 2013 X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=404c4122ce8f5dd55593668fc87ae46236a71b92;ds=sidebyside Fix build with MSVC 2013 Also add an assert hinted by MSVC code analysis tool. No functional change. --- diff --git a/src/pawns.cpp b/src/pawns.cpp index 4ca1bb0e..135633a3 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -17,6 +17,7 @@ along with this program. If not, see . */ +#include #include #include "bitboard.h" diff --git a/src/search.cpp b/src/search.cpp index 22dc401c..5ea1f561 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1669,6 +1669,7 @@ void Thread::idle_loop() { Threads.mutex.lock(); assert(searching); + assert(activeSplitPoint); SplitPoint* sp = activeSplitPoint; Threads.mutex.unlock();