]> git.sesse.net Git - stockfish/commitdiff
Fix clang warning on unused variable
authorJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sun, 20 Feb 2022 16:36:19 +0000 (17:36 +0100)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sun, 20 Feb 2022 21:59:19 +0000 (22:59 +0100)
mark variable as used.

fixes https://github.com/official-stockfish/Stockfish/issues/3900
closes https://github.com/official-stockfish/Stockfish/pull/3941

No functional change

src/evaluate.cpp

index a5c049a88adb8446cb14720a51b3ab109effa45d..923564cbfe8b4ff41af8eda5b1aa1e4ceb8bfbed 100644 (file)
@@ -108,6 +108,7 @@ namespace Eval {
 
                 MemoryBuffer buffer(const_cast<char*>(reinterpret_cast<const char*>(gEmbeddedNNUEData)),
                                     size_t(gEmbeddedNNUESize));
+                (void) gEmbeddedNNUEEnd; // Silence warning on unused variable
 
                 istream stream(&buffer);
                 if (load_eval(eval_file, stream))