CWempe / SuperLEDstrip

14 stars 2 forks source link

Fix warnings found by PlatformIO #30

Closed CWempe closed 5 years ago

CWempe commented 6 years ago

When comiling with PlatformIO there are several warnings like the following.

C:\Users\cwempe\.platformio\packages\framework-arduinoespressif8266\libraries\SoftwareSerial\SoftwareSerial.cpp: In member function 'void SoftwareSerial::rxRead()':
C:\Users\cwempe\.platformio\packages\framework-arduinoespressif8266\libraries\SoftwareSerial\SoftwareSerial.cpp:219:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (next != m_outPos) {
^

.piolibdeps\Nextion_ID37\NexPage.cpp: In member function 'bool NexPage::show()':
.piolibdeps\Nextion_ID37\NexPage.cpp:25:13: warning: unused variable 'buffer' [-Wunused-variable]
uint8_t buffer[4] = {0};
^
CWempe commented 5 years ago

Fixed almost all in a2f44fe2a5357fa0bc315a70bcc254fc4be914c6