Fixed build error with specific options.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13394 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2020-03-06 15:42:50 +00:00
parent 95d66ee7e4
commit c1f07aa0e2
1 changed files with 4 additions and 1 deletions

View File

@ -369,10 +369,13 @@ void chSysTimerHandlerI(void) {
/* Timeout on queues/semaphores requires a special handling because
the counter must be incremented.*/
/*lint -save -e9013 [15.7] There is no else because it is not needed.*/
#if CH_CFG_USE_SEMAPHORES == TRUE
if (NIL_THD_IS_WTQUEUE(tp)) {
tp->u1.semp->cnt++;
}
else if (NIL_THD_IS_SUSPENDED(tp)) {
else
#endif
if (NIL_THD_IS_SUSPENDED(tp)) {
*tp->u1.trp = NULL;
}
/*lint -restore*/