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

Address a gcc 12 warning #19835

Merged
merged 1 commit into from May 18, 2022
Merged

Conversation

bradcray
Copy link
Member

@bradcray bradcray commented May 18, 2022

gcc 12 is smart enough to realize that the second part of the
conditional that I'm modifying in this PR will be true only iff
the first part is, and warns about it (breaking a CHPL_DEVELOPER
build). So simplify the conditional by removing the second part.
This code has been around for a looong time!

gcc 12 is smart enough to realize that the second part of this
conditional will only be hit iff the first part is, and warns about it
(breaking a CHPL_DEVELOPER compile).  So simplify the conditional by
removing the second part.  This code has been around for a looong time!

---
Signed-off-by: Brad Chamberlain <bradcray@users.noreply.github.com>
@bradcray bradcray marked this pull request as ready for review May 18, 2022 19:03
@bradcray bradcray merged commit 34f2944 into chapel-lang:main May 18, 2022
@bradcray bradcray deleted the fix-gcc-12-warning branch May 18, 2022 19:04
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.

None yet

1 participant