Skip to content

Commit 258c13b

Browse files
UniQPvondele
authored andcommitted
Remove redundant extern modifier for function declarations
Functions have external linkage by default, so there's no need to declare them extern. closes #4308 No functional change
1 parent f09b391 commit 258c13b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/position.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class Position {
204204
bool chess960;
205205
};
206206

207-
extern std::ostream& operator<<(std::ostream& os, const Position& pos);
207+
std::ostream& operator<<(std::ostream& os, const Position& pos);
208208

209209
inline Color Position::side_to_move() const {
210210
return sideToMove;

src/psqt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace Stockfish::PSQT
3030
extern Score psq[PIECE_NB][SQUARE_NB];
3131

3232
// Fill psqt array from a set of internally linked parameters
33-
extern void init();
33+
void init();
3434

3535
} // namespace Stockfish::PSQT
3636

src/uci.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ using namespace std;
3636

3737
namespace Stockfish {
3838

39-
extern vector<string> setup_bench(const Position&, istream&);
39+
vector<string> setup_bench(const Position&, istream&);
4040

4141
namespace {
4242

0 commit comments

Comments
 (0)