mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-28 01:25:49 +03:00
[GH-ISSUE #1511] Unused variable breaks builds when using "All" compiler warnings #1288
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1288
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @philj404 on GitHub (Oct 14, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1511
(there is no "development" branch at the moment)
Basic Infos
I prefer to write my code with "All" compiler warnings, as I find this saves me time in the long run.
Unfortunately, some libraries are not clean enough to build with all warnings turned on.
In this case, WiFiManager looks like it is almost clean enough to do so, except for one line.
Hardware
WiFimanager Branch/Release: Master / release tag: 2.0.13-beta
Esp32:
Hardware: ESP32-wrover dev board
Core Version: (?)
Description
You get the following error message:
Settings in IDE
Arduino IDE 2.0.0
Arduino File...Preferences...Compiler Warnings = "All"
Module: ESP32 2.0.4; Wrover Module
Additional libraries: N/A
The workaround seems straightforward and safe: add an "unused" attribute to flag the unused variable as "OK to ignore":
This is not flagged if warnings are set to "Default"
If it would help, I could submit a pull request for you with the change.