]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Fix some warnings under +w1 HP-UX compile
[stockfish] / src / search.cpp
index 79813013d989408a123d2177ce26a611482fd10b..efdb287fa740a3325c73771f6b43492345b5dd5e 100644 (file)
@@ -2774,7 +2774,7 @@ namespace {
         }
 
         // Wait until the thread has finished launching and is gone to sleep
-        while (threads[i].state != THREAD_SLEEPING);
+        while (threads[i].state != THREAD_SLEEPING) {}
     }
   }
 
@@ -2815,7 +2815,7 @@ namespace {
 
     SplitPoint* sp;
 
-    for (sp = threads[threadID].splitPoint; sp && !sp->stopRequest; sp = sp->parent);
+    for (sp = threads[threadID].splitPoint; sp && !sp->stopRequest; sp = sp->parent) {}
     return sp != NULL;
   }