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 warnings with gcc 4.7 and -Werror=parentheses #521

Closed
wants to merge 1 commit into from

Conversation

mattgodbolt
Copy link
Contributor

Fixes issues with GCC where errors of the form error: suggest parentheses around comparison in operand of ‘==’ [-Werror=parentheses]. Seems to only happen with GCC 4.7, for whatever bizarre reason.

Should address issue #496 without the nasty side effects (and reversion).

e.g. fixes errors seen in: https://travis-ci.org/mattgodbolt/seasocks/jobs/86310974 (now https://travis-ci.org/mattgodbolt/seasocks/jobs/86313317)

@philsquared philsquared closed this Dec 9, 2015
philsquared added a commit that referenced this pull request Feb 29, 2016
- should address #593, #528, #521, #496 (and possibly others)
philsquared added a commit that referenced this pull request Jun 7, 2016
- should address #593, #528, #521, #496 (and possibly others)
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