From a8a450198187155fd393729a70839f743e6cff30 Mon Sep 17 00:00:00 2001 From: Song Ruo Jing Date: Wed, 27 Aug 2025 19:47:04 +0800 Subject: [PATCH] fix(uart): fix -Wunused-parameter warning with uart.h --- components/esp_driver_uart/include/driver/uart.h | 1 + 1 file changed, 1 insertion(+) diff --git a/components/esp_driver_uart/include/driver/uart.h b/components/esp_driver_uart/include/driver/uart.h index 97cf379245..16ce34a503 100644 --- a/components/esp_driver_uart/include/driver/uart.h +++ b/components/esp_driver_uart/include/driver/uart.h @@ -397,6 +397,7 @@ static inline esp_err_t _uart_set_pin4(uart_port_t uart_num, int tx_io_num, int // Error function for invalid argument count static inline esp_err_t __uart_set_pin_invalid_args__(int dummy, ...) { + (void)dummy; ESP_RETURN_ON_FALSE(false, ESP_FAIL, "uart", "Invalid number of arguments to uart_set_pin(). Expected 5 or 7 arguments."); return ESP_OK; }