Functions have external linkage by default, so there's no need to
declare them extern.
closes https://github.com/official-stockfish/Stockfish/pull/4308
No functional change
-extern std::ostream& operator<<(std::ostream& os, const Position& pos);
+std::ostream& operator<<(std::ostream& os, const Position& pos);
inline Color Position::side_to_move() const {
return sideToMove;
inline Color Position::side_to_move() const {
return sideToMove;
extern Score psq[PIECE_NB][SQUARE_NB];
// Fill psqt array from a set of internally linked parameters
extern Score psq[PIECE_NB][SQUARE_NB];
// Fill psqt array from a set of internally linked parameters
} // namespace Stockfish::PSQT
} // namespace Stockfish::PSQT
-extern vector<string> setup_bench(const Position&, istream&);
+vector<string> setup_bench(const Position&, istream&);