]> git.sesse.net Git - stockfish/commitdiff
fixup
authorJoost VandeVondele <Joost.VandeVondele@gmail.com>
Wed, 19 Dec 2018 14:28:30 +0000 (15:28 +0100)
committerStéphane Nicolet <stephanenicoletsuriphone@gmail.com>
Sat, 29 Dec 2018 14:34:57 +0000 (15:34 +0100)
src/Makefile
src/cluster.h

index 74fbc051d8bcec436a26d7735eab0f1e285ecc21..c7137696140ab571992bddec5c2f01b43cc38485 100644 (file)
@@ -360,6 +360,7 @@ endif
 ifneq (,$(findstring mpi, $(CXX)))
        mpi = yes
        CXXFLAGS += -DUSE_MPI -Wno-cast-qual
+        DEPENDFLAGS += -DUSE_MPI
 endif
 
 ### ==========================================================================
index 383e7aded9d58c39de8ffb5285ded32c4bae0043..266ffca341d8bf93dc438a42b816549ec3f4a743 100644 (file)
@@ -82,20 +82,13 @@ void sync_stop();
 
 inline void init() { }
 inline void finalize() { }
-inline bool getline(std::istream& input, std::string& str) {
-
-  return static_cast<bool>(std::getline(input, str));
-}
+inline bool getline(std::istream& input, std::string& str) { return static_cast<bool>(std::getline(input, str)); }
 constexpr int size() { return 1; }
 constexpr int rank() { return 0; }
 constexpr bool is_root() { return true; }
-inline void save(Thread* thread, TTEntry* tte, Key k, Value v, Bound b, Depth d, Move m, Value ev) {
-
-  (void)thread;
-  tte->save(k, v, b, d, m, ev);
-}
+inline void save(Thread*, TTEntry* tte, Key k, Value v, Bound b, Depth d, Move m, Value ev) { tte->save(k, v, b, d, m, ev); }
 inline void pick_moves(MoveInfo&) { }
-inline void sum(uint64_t& val) { (void)val; }
+inline void sum(uint64_t& ) { }
 inline void sync_start() { }
 inline void sync_stop() { }