-
Notifications
You must be signed in to change notification settings - Fork 7.6k
unused but set variables #7074
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @lbernstone - There is a |
Please, even if a (void)var is needed, I still think it is better than just silence the warning. Every time I try to build something I have to check if it's the framework's warning or mine. |
If don't think it should be silenced @bertmelis, but it should not be fatal. The framework shouldn't be throwing warnings! I'll try that PR and see if it runs the middle ground (warning that variable is unused), @SuGlider . |
For reference: Users can override https://arduino.github.io/arduino-cli/0.21/platform-specification/#platformlocaltxt |
I have the same problem. |
@rin67630 The issue here was this error was being thrown by code from this repo. Third party libraries are responsible for fixing their own errors. |
Board
esp32 dev module
Device Description
any device
Hardware Configuration
any
Version
v2.0.4
IDE Name
Arduino IDE
Operating System
ubuntu
Flash frequency
all
PSRAM enabled
no
Upload speed
115200
Description
platform.txt shows -Wno-error=unused-but-set-variable throughout, and yet is overriden somewhere. Obviously not a major issue, but truly annoying when building out code.
Sketch
char* test;
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: