fix(mdns): Fix unused variable dcst warning for wifi-remote chips (IDFGH-16787)
#940
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fix mdns.c dcst variable not used warning for ESP32-P4 and other non-native Wi-Fi devices
esp_netif_dhcp_status_t dcst;declaration where usedTesting
Tried with ESP RainMaker example on ESP32-P4
Checklist
Before submitting a Pull Request, please ensure the following:
Note
Expand
MDNS_ESP_WIFI_ENABLEDto coverCONFIG_ESP_WIFI_REMOTE_ENABLEDand movedcstdeclarations into specific Wi‑Fi/Ethernet event branches to fix unused-variable warnings.components/mdns/mdns.c):MDNS_ESP_WIFI_ENABLEDnow checks(CONFIG_ESP_WIFI_ENABLED || CONFIG_ESP_WIFI_REMOTE_ENABLED).esp_netif_dhcp_status_t dcstinsideWIFI_EVENTbranch.esp_netif_dhcp_status_t dcstinsideETH_EVENTbranch.Written by Cursor Bugbot for commit 081eef8. This will update automatically on new commits. Configure here.