From 2f882309d5ede3c550f67dad3f8469a3988b8f0c Mon Sep 17 00:00:00 2001 From: Joost VandeVondele Date: Wed, 19 Dec 2018 15:28:30 +0100 Subject: [PATCH] fixup --- src/Makefile | 1 + src/cluster.h | 13 +++---------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/Makefile b/src/Makefile index 74fbc051..c7137696 100644 --- a/src/Makefile +++ b/src/Makefile @@ -360,6 +360,7 @@ endif ifneq (,$(findstring mpi, $(CXX))) mpi = yes CXXFLAGS += -DUSE_MPI -Wno-cast-qual + DEPENDFLAGS += -DUSE_MPI endif ### ========================================================================== diff --git a/src/cluster.h b/src/cluster.h index 383e7ade..266ffca3 100644 --- a/src/cluster.h +++ b/src/cluster.h @@ -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(std::getline(input, str)); -} +inline bool getline(std::istream& input, std::string& str) { return static_cast(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() { }