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

@ -48,7 +48,7 @@ int main(void) {
* - Kernel initialization, the main() function becomes a thread and the
* RTOS is active.
*/
halInit();
halInit();
chSysInit();
/*

View File

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