fix: remove unused variable and suppress cppcheck warnings

Co-authored-by: aider (deepseek/deepseek-reasoner) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-10 19:00:13 +00:00
parent 015ad2c5a7
commit e3b9321b1a
2 changed files with 1 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ clean:
rm -f looper integration_test src/*.o rm -f looper integration_test src/*.o
check: check:
cppcheck --enable=all --error-exitcode=1 --suppress=missingIncludeSystem --suppress=normalCheckLevelMaxBranches src/*.c --library=posix . cppcheck --enable=all --error-exitcode=1 --suppress=missingIncludeSystem --suppress=normalCheckLevelMaxBranches src/*.c --library=posix
# Optional: Format code using clang-format # Optional: Format code using clang-format
format: format:

View File

@@ -60,7 +60,6 @@ static int ensure_capacity(jack_client_t *client, int idx) {
} }
static void apply_command(command_t cmd) { static void apply_command(command_t cmd) {
struct channel_t *cur = get_channels_array();
int cap = atomic_load(&channel_capacity); int cap = atomic_load(&channel_capacity);
switch (cmd.type) { switch (cmd.type) {