You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know it's "just a warning", but it is so easy to fix.
Complete warning:
C:\Users\steve\Documents\Arduino\libraries\PubSubClient\src\PubSubClient.cpp:523:16: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
523 | return (rc == expectedLength);
| ~~~^~~~~~~~~~~~~~~~~
Solution:
In PubSubClient.cpp, at line 481, change unsigned int rc to uint16_t rc
The text was updated successfully, but these errors were encountered:
unsigned int rc is a 32 bit value, changing it to uint16_t may have unforeseen consequences, better to change expectedLength to be unsigned as it's unlikely to ever be negative
I know it's "just a warning", but it is so easy to fix.
Complete warning:
Solution:
In PubSubClient.cpp, at line 481, change unsigned int rc to uint16_t rc
The text was updated successfully, but these errors were encountered: