From 9f5121e27138143c7a3f32e617808106db3dd8ad Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 24 Apr 2026 12:33:41 -0500 Subject: [PATCH] [core] Suppress redundant-declaration warning for ESP32 esp_timer_get_time forward decl --- esphome/core/hal.h | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/core/hal.h b/esphome/core/hal.h index 66b4f72d4b..65e0053236 100644 --- a/esphome/core/hal.h +++ b/esphome/core/hal.h @@ -132,6 +132,7 @@ __attribute__((always_inline)) inline bool in_isr_context() { // loop. ESP8266/LibreTiny/RP2040 share Arduino's ::yield/::delay/::micros. #if defined(USE_ESP32) // Forward decl from . +// NOLINTNEXTLINE(readability-redundant-declaration) extern "C" int64_t esp_timer_get_time(void); __attribute__((always_inline)) inline void yield() { vPortYield(); } __attribute__((always_inline)) inline void delay(uint32_t ms) { vTaskDelay(ms / portTICK_PERIOD_MS); }