From abef3e86f42fd4953d28cc7c3381601475d11346 Mon Sep 17 00:00:00 2001 From: Joost VandeVondele Date: Sun, 20 Feb 2022 17:36:19 +0100 Subject: [PATCH] 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 --- src/evaluate.cpp | 1 + 1 file changed, 1 insertion(+) 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)) -- 2.39.2