From c287c3b2a5fc32c43df5c23d92083e4e3f5ad82a Mon Sep 17 00:00:00 2001 From: Thea Flowers Date: Mon, 20 Sep 2021 18:38:48 -0400 Subject: [PATCH] firmware: Fix unused variable warning when using debug_printf --- firmware/src/gem_sysex_commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/src/gem_sysex_commands.c b/firmware/src/gem_sysex_commands.c index 721d2132..95fa8b31 100644 --- a/firmware/src/gem_sysex_commands.c +++ b/firmware/src/gem_sysex_commands.c @@ -210,7 +210,7 @@ static void cmd_0x05_set_dac_(const uint8_t* data, size_t len) { uint16_t c = WNTR_UNPACK_16(request, 4); uint16_t d = WNTR_UNPACK_16(request, 6); - enum GemI2CResult res = gem_mcp_4728_write_channels( + __attribute__((unused)) enum GemI2CResult res = gem_mcp_4728_write_channels( (struct GemMCP4278Channel){ .value = a, },