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 short-circuiting operations with side-effects #148

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

archigup
Copy link
Member

@archigup archigup commented Aug 2, 2023

MISRA forbids having expressions with side effects on the right side of an && or || operator.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

MISRA forbids having expressions with side effects on the right side of
an && or || operator.
Copy link
Member

@kstribrnAmzn kstribrnAmzn left a comment

Choose a reason for hiding this comment

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

Gotta love MISRA and it's beautifying affect on code :P

@AniruddhaKanhere AniruddhaKanhere merged commit 84f903f into FreeRTOS:main Aug 2, 2023
9 checks passed
@archigup archigup deleted the misrashortcircuit branch August 4, 2023 04:18
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.

3 participants