From: Joost VandeVondele Date: Sun, 20 Feb 2022 16:36:19 +0000 (+0100) Subject: Fix clang warning on unused variable X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=abef3e86f42fd4953d28cc7c3381601475d11346 Fix clang warning on unused variable 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 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index a5c049a8..923564cb 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -108,6 +108,7 @@ namespace Eval { MemoryBuffer buffer(const_cast(reinterpret_cast(gEmbeddedNNUEData)), size_t(gEmbeddedNNUESize)); + (void) gEmbeddedNNUEEnd; // Silence warning on unused variable istream stream(&buffer); if (load_eval(eval_file, stream))