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 <nick@koston.org>
This commit is contained in:
J. Nick Koston
2026-02-27 21:16:45 -10:00
co-authored by J. Nick Koston
parent e468db0fce
commit 25ee5c9a28
+2 -2
View File
@@ -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 {