From 9b4ac0762697827b99efcfd7503b2919dc1d44e8 Mon Sep 17 00:00:00 2001 From: Wiebe Cazemier Date: Sat, 18 Nov 2023 09:28:16 +0100 Subject: [PATCH] Fix unused variable in release builds --- mainapp.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mainapp.cpp b/mainapp.cpp index d54a121b..cde1dd55 100644 --- a/mainapp.cpp +++ b/mainapp.cpp @@ -546,9 +546,8 @@ MainApp *MainApp::getMainApp() void MainApp::start() { - const bool fuzzMode = getFuzzMode(); #ifndef NDEBUG - if (!fuzzMode) + if (!getFuzzMode()) { oneInstanceLock.lock(); } @@ -566,7 +565,7 @@ void MainApp::start() #ifndef NDEBUG // I fuzzed using afl-fuzz. You need to compile it with their compiler. - if (fuzzMode) + if (getFuzzMode()) { // No threads for execution stability/determinism. num_threads = 0;