]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Fixed some warnings when using -Weffc++ gcc option
[stockfish] / src / evaluate.cpp
index 0f0034b2101eedd36a546dbb01d7a99be64c745e..e167bb6994f788ec4a81ae12b236d34b78d371c8 100644 (file)
@@ -241,7 +241,7 @@ namespace {
   template<Color Us>
   Score evaluate_passed_pawns(const Position& pos, EvalInfo& ei);
 
-  Score apply_weight(Score v, Score weight);
+  inline Score apply_weight(Score v, Score weight);
   Value scale_by_game_phase(const Score& v, Phase ph, ScaleFactor sf);
   Score weight_option(const std::string& mgOpt, const std::string& egOpt, Score internalWeight);
   void init_safety();