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 -Wlogical-not-parentheses warning #79

Merged
merged 3 commits into from
Feb 26, 2021

Conversation

vaipatel
Copy link

@vaipatel vaipatel commented Nov 30, 2019

Hello, the above warning is issued for lines 87 and 97. I believe the warning occurs because operator!() has higher precedence than operator>().

Alternatively, we can use:

iClient->connect(iServerAddress, iServerPort) <= 0

The warning occurs because `operator!()` has higher precedence than `operator>()`.

Alternatively, we can use:
```
iClient->connect(iServerAddress, iServerPort) <= 0
```
Copy link

@semcneil semcneil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix worked for me as well. Can it be merged?

@FedeBev
Copy link

FedeBev commented Jun 5, 2020

Hi there,

what about this?

Copy link

@xxthunder xxthunder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be merged.

@facchinm facchinm merged commit 9a5afdf into arduino-libraries:master Feb 26, 2021
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.

5 participants