From adade9d248b8333cd8de7be08c094e425ce1ce31 Mon Sep 17 00:00:00 2001 From: Seth Troisi Date: Tue, 22 Feb 2022 15:18:04 -0800 Subject: Prevent -Wunused-but-set-variable in clockless_rmt_esp32.h --- src/platforms/esp/32/clockless_rmt_esp32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/esp/32/clockless_rmt_esp32.h b/src/platforms/esp/32/clockless_rmt_esp32.h index 66b04928..c4b28176 100644 --- a/src/platforms/esp/32/clockless_rmt_esp32.h +++ b/src/platforms/esp/32/clockless_rmt_esp32.h @@ -169,7 +169,7 @@ __attribute__ ((always_inline)) inline static uint32_t __clock_cycles() { #if FASTLED_RMT_SERIAL_DEBUG == 1 #define FASTLED_DEBUG(format, errcode, ...) if (errcode != ESP_OK) { Serial.printf(PSTR("FASTLED: " format "\n"), errcode, ##__VA_ARGS__); } #else -#define FASTLED_DEBUG(format, ...) +#define FASTLED_DEBUG(format, errcode, ...) (void) errcode; #endif // -- Configuration constants -- cgit v1.2.3