From 61c97b029c0e15e881f3a3701f93d28e7226497f Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 2 Aug 2025 13:01:03 -1000 Subject: [PATCH] preen --- esphome/components/wifi/wifi_component.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/wifi/wifi_component.cpp b/esphome/components/wifi/wifi_component.cpp index e7ca3629a5..f815ab73c2 100644 --- a/esphome/components/wifi/wifi_component.cpp +++ b/esphome/components/wifi/wifi_component.cpp @@ -507,7 +507,7 @@ void WiFiComponent::start_scanning() { // Helper function for WiFi scan result comparison // Returns true if 'a' should be placed before 'b' in the sorted order -static bool wifi_scan_result_is_better(const WiFiScanResult &a, const WiFiScanResult &b) { +[[nodiscard]] inline static bool wifi_scan_result_is_better(const WiFiScanResult &a, const WiFiScanResult &b) { // Matching networks always come before non-matching if (a.get_matches() && !b.get_matches()) return true;