]> begriffs open source - freertos/commit
Update prvYieldCore() compile warning for single core targets (#505)
authorSudeep Mohanty <91244425+sudeep-mohanty@users.noreply.github.com>
Wed, 22 Jun 2022 04:33:44 +0000 (06:33 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Jun 2022 04:33:44 +0000 (10:03 +0530)
commit2eff037080996e67a79e381667f0b77252e653b8
tree41492be10f237fd5e4f6b616535cf3f86be82ac0
parent45dd83a8e32609d435c6e3684260a84a0051e2e8
Update prvYieldCore() compile warning for single core targets (#505)

When configNUM_CORES is 1, prvYieldCore() generates an array subscript
outofbound error (-Warray-bounds) when compiled with GCC with space
optimization enabled (-Os).

This commit updates the code flow in prvYieldCore() to compile out
the part where yield is needed on the other core which is unnecessary
for single-core targets.
tasks.c