From 25ee5c9a281c13570369d8037ef62b7e8d463fef Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 27 Feb 2026 21:16:45 -1000 Subject: [PATCH] Add NOLINT for redundant-declaration from Arduino.h Arduino.h on ESP8266 already declares void setup(void), so our forward declaration triggers readability-redundant-declaration. Co-Authored-By: J. Nick Koston --- esphome/core/application.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/core/application.h b/esphome/core/application.h index 194208c701..ba3ce13291 100644 --- a/esphome/core/application.h +++ b/esphome/core/application.h @@ -109,8 +109,8 @@ class Socket; } // namespace esphome::socket // Forward declarations for friend access from codegen-generated setup() -void setup(); -void original_setup(); // Used by cpp unit tests which replace setup() with gtest runner +void setup(); // NOLINT(readability-redundant-declaration) - may be declared in Arduino.h +void original_setup(); // NOLINT(readability-redundant-declaration) - used by cpp unit tests namespace esphome {