Skip to content

Commit

Permalink
Fix unused variable warning in Release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jhasse committed Dec 29, 2023
1 parent fd1bd19 commit 90a8751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/sdl/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct engine::Impl {
do {
std::this_thread::sleep_for(std::chrono::milliseconds(1000 / slowdown));
} while (pause && !quit);
const auto read = this->output->read(buffer.data(), buffer.size());
[[maybe_unused]] const auto read = this->output->read(buffer.data(), buffer.size());
assert(read == buffer.size());
// to debug sound on the terminal:
// float average = 0;
Expand Down

0 comments on commit 90a8751

Please sign in to comment.