You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/03/19 14:29:47 UTC
[GitHub] [incubator-nuttx] patacongo opened a new pull request #3111: Sporadic scheduler: Fix compile errors when assertions are enabled:
patacongo opened a new pull request #3111:
URL: https://github.com/apache/incubator-nuttx/pull/3111
## Summary
Fix missing semicolon at the end of a DEBUGASSERT statement:
```
sched/sched_sporadic.c: In function 'sporadic_budget_expire':
sched/sched_sporadic.c:512:15: error: expected ';' before 'period'
512 | period = (sporadic->repl_period >> 1) - unrealized;
| ^~~~~~
sched/sched_sporadic.c: In function 'nxsched_resume_sporadic':
sched/sched_sporadic.c:1078:19: error: expected ';' before 'period'
1078 | period = (sporadic->repl_period >> 1) - unrealized;
| ^~~~~~
```
Fix use of uninitialized variable in DEBUGASSERT statement:
sched/sched_sporadic.c:466:27: warning: 'sporadic' may be used uninitialized in this function [-Wmaybe-uninitialized]
466 | sporadic->nrepls > 0);
## Impact
There should be no unexpected side-effects of this changed.
## Testing
Tested with the stm32f4discovery:sporadic configuration (see PR #3097)
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #3111: Sporadic scheduler: Fix time calculation and compile errors when assertions are enabled:
Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #3111:
URL: https://github.com/apache/incubator-nuttx/pull/3111
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org