Skip to content
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

Unused variable TAG prevents compilation when compiler warnings "more" or "all" selected #77

Open
ethanak opened this issue Aug 16, 2022 · 0 comments

Comments

@ethanak
Copy link

ethanak commented Aug 16, 2022

Arduino IDE version 1.8.19
ESP32 board version 2.0.4
Physical board: any
Preferences setting: Compiler warnings: "more" or "all"
Got compilation error:

/home/ethanak/Arduino/libraries/ESP32Encoder/src/ESP32Encoder.cpp:12:20: error: 'TAG' defined but not used [-Werror=unused-variable]
 static const char* TAG = "ESP32Encoder";
                    ^~~
cc1plus: some warnings being treated as errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant