mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 15:08:10 +01:00
Fix CI
This commit is contained in:
parent
056c72d50d
commit
ae784dc74c
1 changed files with 3 additions and 3 deletions
|
@ -139,19 +139,19 @@ float Component::get_actual_setup_priority() const {
|
||||||
}
|
}
|
||||||
void Component::set_setup_priority(float priority) { this->setup_priority_override_ = priority; }
|
void Component::set_setup_priority(float priority) { this->setup_priority_override_ = priority; }
|
||||||
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wpmf-conversions"
|
|
||||||
bool Component::has_overridden_loop() const {
|
bool Component::has_overridden_loop() const {
|
||||||
#ifdef CLANG_TIDY
|
#ifdef CLANG_TIDY
|
||||||
bool loop_overridden = true;
|
bool loop_overridden = true;
|
||||||
bool call_loop_overridden = true;
|
bool call_loop_overridden = true;
|
||||||
#else
|
#else
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wpmf-conversions"
|
||||||
bool loop_overridden = (void *) (this->*(&Component::loop)) != (void *) (&Component::loop);
|
bool loop_overridden = (void *) (this->*(&Component::loop)) != (void *) (&Component::loop);
|
||||||
bool call_loop_overridden = (void *) (this->*(&Component::call_loop)) != (void *) (&Component::call_loop);
|
bool call_loop_overridden = (void *) (this->*(&Component::call_loop)) != (void *) (&Component::call_loop);
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
return loop_overridden || call_loop_overridden;
|
return loop_overridden || call_loop_overridden;
|
||||||
}
|
}
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
|
|
||||||
PollingComponent::PollingComponent(uint32_t update_interval) : Component(), update_interval_(update_interval) {}
|
PollingComponent::PollingComponent(uint32_t update_interval) : Component(), update_interval_(update_interval) {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue