mirror of
https://github.com/esphome/esphome.git
synced 2026-09-02 02:56:01 +00:00
[core] Remove leftover -O2 attributes (writer.py loop, host/zephyr main)
This commit is contained in:
@@ -77,8 +77,7 @@ uint32_t arch_get_cpu_freq_hz() { return 1000000000U; }
|
||||
|
||||
void setup();
|
||||
void loop();
|
||||
int __attribute__((optimize("O2"))) // NOLINT(clang-diagnostic-unknown-attributes)
|
||||
main() {
|
||||
int main() {
|
||||
// Install signal handlers for graceful shutdown (flushes preferences to disk)
|
||||
std::signal(SIGINT, signal_handler);
|
||||
std::signal(SIGTERM, signal_handler);
|
||||
|
||||
@@ -95,8 +95,7 @@ void get_mac_address_raw(uint8_t *mac) { // NOLINT(readability-non-const-parame
|
||||
void setup();
|
||||
void loop();
|
||||
|
||||
int __attribute__((optimize("O2"))) // NOLINT(clang-diagnostic-unknown-attributes)
|
||||
main() {
|
||||
int main() {
|
||||
setup();
|
||||
while (true) {
|
||||
loop();
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ void setup() {
|
||||
App.setup();
|
||||
}
|
||||
|
||||
void __attribute__((optimize("O2"))) loop() {
|
||||
void loop() {
|
||||
App.loop();
|
||||
}
|
||||
""",
|
||||
|
||||
Reference in New Issue
Block a user