Workaround for GCC7 fallthrough bug.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11161 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Giovanni Di Sirio 2017-12-22 11:05:26 +00:00
parent 4e51e4aadb
commit 1ffcc1b527
2 changed files with 3 additions and 3 deletions

View File

@ -334,11 +334,11 @@ static void wakeup(void *p) {
chSemFastSignalI(tp->u.wtsemp); chSemFastSignalI(tp->u.wtsemp);
#endif #endif
/* Falls through.*/ /* Falls through.*/
case CH_STATE_QUEUED:
/* Falls through.*/
#if (CH_CFG_USE_CONDVARS == TRUE) && (CH_CFG_USE_CONDVARS_TIMEOUT == TRUE) #if (CH_CFG_USE_CONDVARS == TRUE) && (CH_CFG_USE_CONDVARS_TIMEOUT == TRUE)
case CH_STATE_WTCOND: case CH_STATE_WTCOND:
#endif #endif
/* Falls through.*/
case CH_STATE_QUEUED:
/* States requiring dequeuing.*/ /* States requiring dequeuing.*/
(void) queue_dequeue(tp); (void) queue_dequeue(tp);
break; break;