jyberg / Enhanced-Nextion-Library

Enhanced Nextion library for Arduino, NodeMcu, Esp8266,...
MIT License
47 stars 23 forks source link

variable 'c' set but not used #30

Closed australopitheque closed 2 years ago

australopitheque commented 2 years ago

Hello on platformIO with VScode I get an alert message at compile time in NexHardware.

variable 'c' set but not used [-Wunused-but-set-variable]

[{ "resource": "/Enhanced-Nextion-Library/src/NexHardware.cpp", "owner": "cpp", "severity": 4, "message": "variable 'c' set but not used [-Wunused-but-set-variable]", "startLineNumber": 729, "startColumn": 21, "endLineNumber": 729, "endColumn": 21 }]

jyberg commented 2 years ago

have you read the code? Variable c is used for debug message and readin data from buffer, in next lines. False Positive warning

australopitheque commented 2 years ago

Hello no I didn't look at it because this part in general I don't touch it, and as it doesn't block me, I just wanted to point out the warning when compiling...