raiden00pl opened a new pull request, #19961:
URL: https://github.com/apache/nuttx/pull/19961
## Summary
Alternatives selected by conditional compilation share the braces that
follow, and a branch may hold statements before reaching its condition.
## Impact
nxstyle fix
## Testing
```c
41 int demo(int a)
42 {
43 #ifdef CONFIG_FOO
44 if (a > 0)
45 #else
46 a = 1;
47 if (a < 0)
48 #endif
49 {
50 a--;
51 }
52
53 return a;
54 }
```
Before:
```
test.c:46:2: error: Missing braces after 'if'
```
After: clean.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]