Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve sign comparison warning in PubSubClient::publish_P #1075

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SebDominguez
Copy link

Changed the type of expectedLength from int to unsigned int to match rc type,
resolving the -Wsign-compare warning on line 523: return (rc == expectedLength);

@hmueller01
Copy link

Welcome to the long list of users fixing this ... ;-)
I think this won't be merged here. See #1045
You may use my fork, fixing this and lot's of other stuff.
https://github.com/hmueller01/pubsubclient3
PubSubClient3 should be visible in Arduino and PlatformIO as well.

@SebDominguez
Copy link
Author

Thanks for maintaining this library. Unfortunately, PubSubClient3 fail to build when using the SAMD21G18A platform, so I just patched version 2.8 for now.

@hmueller01
Copy link

Can you create an issue at PubSubClient3 and explain what does not work? Do you use
platform = SAMD21G18A
I can't find that at PlatformIO ...

@SebDominguez
Copy link
Author

SebDominguez commented Feb 21, 2025

Sure, I'm opening the issue right now.

Issue: hmueller01#6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants