Skip to content

Conversation

@tychofrei02
Copy link
Contributor

Added missing parentheses around macro argument expansion.

This corresponds to following coding guideline:

Expressions resulting from the expansion of macro parameters shall be enclosed in parentheses

This PR is part of the enhancement issue #48002 which port the coding guideline fixes done by BUGSENG on the https://github.com/zephyrproject-rtos/zephyr/tree/v2.7-auditable-branch back to main

The commit in this PR is a subset of the original auditable-branch commit:
3c1d1a1

- added missing parenthesis around macro argument expansion

Signed-off-by: frei tycho <tfrei@baumer.com>
Copy link
Contributor

@andyross andyross left a comment

Choose a reason for hiding this comment

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

FWIW, lots of these are needless, like for example they're expanding into a context where no valid argument could bind tighter to the syntax on either side than to its internals. Lots of the ones taking types or lvalues fit into that category.

But I don't see anything that would break here either

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants