diff --git a/esphome/core/application.h b/esphome/core/application.h index d6ca9b829b..1bae34aa07 100644 --- a/esphome/core/application.h +++ b/esphome/core/application.h @@ -611,7 +611,8 @@ inline uint32_t ESPHOME_ALWAYS_INLINE Application::before_loop_tasks_(uint32_t l return last_op_end_time; } -inline void ESPHOME_ALWAYS_INLINE __attribute__((optimize("O2"))) Application::loop() { +inline void ESPHOME_ALWAYS_INLINE __attribute__((optimize("O2"))) // NOLINT(clang-diagnostic-unknown-attributes) +Application::loop() { #ifdef USE_RUNTIME_STATS // Capture the start of the active (non-sleeping) portion of this iteration. // Used to derive main-loop overhead = active time − Σ(component time) −