From: Joost VandeVondele Date: Sat, 5 Nov 2022 08:14:11 +0000 (+0100) Subject: Mark variable as potentially unused X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=61a2cb84a60b8a48a0e1d34955d8a4d1acdcf497 Mark variable as potentially unused fixes CI when compiled with -Werror closes https://github.com/official-stockfish/Stockfish/pull/4221 No functional change --- diff --git a/src/position.cpp b/src/position.cpp index 62e6e238..5befcaf2 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -129,7 +129,7 @@ void Position::init() { // Prepare the cuckoo tables std::memset(cuckoo, 0, sizeof(cuckoo)); std::memset(cuckooMove, 0, sizeof(cuckooMove)); - int count = 0; + [[maybe_unused]] int count = 0; for (Piece pc : Pieces) for (Square s1 = SQ_A1; s1 <= SQ_H8; ++s1) for (Square s2 = Square(s1 + 1); s2 <= SQ_H8; ++s2)