From 747047556e6e23e54e041980c83bff27cee3b1bb Mon Sep 17 00:00:00 2001 From: proddy Date: Fri, 1 May 2026 17:58:22 +0200 Subject: [PATCH] fix lint warnings on osx --- src/core/network.h | 9 +++++++++ src/core/system.cpp | 2 ++ 2 files changed, 11 insertions(+) diff --git a/src/core/network.h b/src/core/network.h index 9b5f7ed04..296187298 100644 --- a/src/core/network.h +++ b/src/core/network.h @@ -163,6 +163,11 @@ class Network { const char * disconnectReason(uint8_t code); void stopAP(); +#if defined(__clang__) +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunused-private-field" +#endif + unsigned long lastConnectionAttempt_ = 0; uint16_t connectcount_ = 0; // number of network reconnects uint32_t network_ip_ = 0; @@ -205,6 +210,10 @@ class Network { IPAddress ap_gatewayIP_; IPAddress ap_subnetMask_; +#if defined(__clang__) +#pragma clang diagnostic pop +#endif + // for the captive portal in AP mode #ifndef EMSESP_STANDALONE DNSServer * ap_dnsServer_; diff --git a/src/core/system.cpp b/src/core/system.cpp index d291dfc70..f3cf50908 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -1647,6 +1647,7 @@ bool System::check_upgrade() { // changes going to v3.9 from an earlier version if (settings_version.major() == 3 && settings_version.minor() < 9) { + #ifndef EMSESP_STANDALONE EMSESP::esp32React.getAPSettingsService()->update([&](APSettings & apSettings) { if (apSettings.provisionMode == 0) { apSettings.provisionMode = AP_MODE_DISCONNECTED; // AP_MODE_ALWAYS has been removed @@ -1655,6 +1656,7 @@ bool System::check_upgrade() { } return StateUpdateResult::UNCHANGED; }); + #endif } // changes to application settings