diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-12-22 11:05:26 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-12-22 11:05:26 +0000 |
commit | 1ffcc1b527ea652dfc067e13e90b0ab728ece3e7 (patch) | |
tree | 28ff64f03d2d9619b0a01d6a626103398ccdc65f /os/rt | |
parent | 4e51e4aadb58c2e6f06d2373c8e011be94cf16c5 (diff) | |
download | ChibiOS-1ffcc1b527ea652dfc067e13e90b0ab728ece3e7.tar.gz ChibiOS-1ffcc1b527ea652dfc067e13e90b0ab728ece3e7.tar.bz2 ChibiOS-1ffcc1b527ea652dfc067e13e90b0ab728ece3e7.zip |
Workaround for GCC7 fallthrough bug.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11161 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt')
-rw-r--r-- | os/rt/src/chschd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/rt/src/chschd.c b/os/rt/src/chschd.c index 5243c8798..03e39c2ec 100644 --- a/os/rt/src/chschd.c +++ b/os/rt/src/chschd.c @@ -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;
|