mirror of
https://github.com/troglobit/finit.git
synced 2026-11-12 16:51:25 +00:00
Fix GCC 7 warning, convert "Fall through" to "fallthrough" comment
In GCC 7 the -Wextra infers the new -Wimplicit-fallthrough which can be
suppressed by adding a simple comment
/* fallthrough */
Which we had, but was too verbose (and misspelled) for GCC to notice.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
3e71d43bff
commit
920df09cd5
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -131,8 +131,8 @@ static void parse(void *arg, int fd, int events)
|
|||||||
switch (rq.runlevel) {
|
switch (rq.runlevel) {
|
||||||
case 's':
|
case 's':
|
||||||
case 'S':
|
case 'S':
|
||||||
rq.runlevel = '1';
|
rq.runlevel = '1'; /* Single user mode */
|
||||||
/* Fall through to regular processing */
|
/* fallthrough */
|
||||||
|
|
||||||
case '0'...'9':
|
case '0'...'9':
|
||||||
_d("Setting new runlevel %c", rq.runlevel);
|
_d("Setting new runlevel %c", rq.runlevel);
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ static void cb(uev_t *w, void *arg, int events)
|
|||||||
case 's':
|
case 's':
|
||||||
case 'S':
|
case 'S':
|
||||||
rq.runlevel = '1'; /* Single user mode */
|
rq.runlevel = '1'; /* Single user mode */
|
||||||
/* Fall through to regular processing */
|
/* fallthrough */
|
||||||
|
|
||||||
case '0'...'9':
|
case '0'...'9':
|
||||||
_d("Setting new runlevel %c", rq.runlevel);
|
_d("Setting new runlevel %c", rq.runlevel);
|
||||||
|
|||||||
Reference in new issue
Block a user