knolleary / pubsubclient

A client library for the Arduino Ethernet Shield that provides support for MQTT.
http://pubsubclient.knolleary.net/
MIT License
3.78k stars 1.46k forks source link

Different error on Ubuntu arduino ide from windows arduino ide. #1048

Open MoniqueNijboer opened 3 months ago

MoniqueNijboer commented 3 months ago

Hello, i'm receiving an error when compiling on my Ubuntu Ardiuno ide 2.3.2 with pubsubclient 2.8.0.

PubSubClient.cpp: In member function 'boolean PubSubClient::publish_P(const char*, const uint8_t*, unsigned int, boolean)': PubSubClient.cpp:523:16: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] return (rc == expectedLength);

This error doesn't persist on a windows arduino ide 2.3.2

on both the board selected is teensy 4.1