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

Compiler warning deprecated "boolean" #964

Open JoelMuhanguzi opened 1 year ago

JoelMuhanguzi commented 1 year ago

So been using PubSubClient and whenever I enable compiler warnings, it keeps returning a deprecated warning on most class functions specifically with the keyword boolean for example boolean Connect(), how can one solve this particular issue to update it such that no warnings are displayed when compiling?

Thank you, looking forward to your feedback

Niecke commented 1 year ago

I think you would just have to adjust every place in the code. Since the last release is more than 2 years old, this might take some time to be merged. In the meantime, you could try to add a filter for warnings produced by this library.

Edit: I tried this in a fork (https://github.com/Niecke/pubsubclient/tree/remove_boolean) my project dependent on PubSub still compiles, but haven tested anything further until now.