diff --git a/esphome/core/helpers.h b/esphome/core/helpers.h index d2e739ba5a..2267208752 100644 --- a/esphome/core/helpers.h +++ b/esphome/core/helpers.h @@ -1946,9 +1946,10 @@ class LwIPLock { LwIPLock(); ~LwIPLock(); #else - // No lwIP core locking — inline no-ops - LwIPLock() = default; - ~LwIPLock() = default; + // No lwIP core locking — inline no-ops (empty bodies instead of = default + // to prevent clang-tidy unused-variable warnings at call sites) + LwIPLock() {} + ~LwIPLock() {} #endif };