From 4e517b422df0e6d690118429140ae5a1955b39c9 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 29 Apr 2026 06:08:04 -0500 Subject: [PATCH] [esp8266] NOLINT redundant-declaration on system_soft_wdt_feed forward decl clang-tidy flagged the forward decl in hal_esp8266.h because also declares the function (when included via SDK headers). Both decls are identical `extern "C"` so the redundancy is harmless; suppress the warning on the hal_esp8266.h side. --- esphome/core/hal/hal_esp8266.h | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/core/hal/hal_esp8266.h b/esphome/core/hal/hal_esp8266.h index d947612bcc..04326a3579 100644 --- a/esphome/core/hal/hal_esp8266.h +++ b/esphome/core/hal/hal_esp8266.h @@ -21,6 +21,7 @@ extern "C" unsigned long millis(void); // NOLINTEND(google-runtime-int,readability-identifier-naming,readability-redundant-declaration) // Forward decl from for arch_feed_wdt() inline below. +// NOLINTNEXTLINE(readability-redundant-declaration) extern "C" void system_soft_wdt_feed(void); namespace esphome {