Skip to content

Commit

Permalink
Fix unused variable in release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
halfgaar committed Nov 18, 2023
1 parent eced5ee commit 9b4ac07
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mainapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -546,9 +546,8 @@ MainApp *MainApp::getMainApp()

void MainApp::start()
{
const bool fuzzMode = getFuzzMode();
#ifndef NDEBUG
if (!fuzzMode)
if (!getFuzzMode())
{
oneInstanceLock.lock();
}
Expand All @@ -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;
Expand Down

0 comments on commit 9b4ac07

Please sign in to comment.