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

Add do while(0) protection for macros #959

Merged
merged 1 commit into from
Aug 30, 2022
Merged

Conversation

afcidk
Copy link
Contributor

@afcidk afcidk commented Jun 4, 2021

Wrapping multi-line macros in do...while(0) statement prevents
potential dangling else problem.

Wrapping multi-line macros in do...while(0) statement prevents
potential dangling else problem.
@michael-grunder michael-grunder merged commit 9e174e8 into redis:master Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants