Mercurial > projects > pwm
diff pwm.c @ 30:2552eec9b913
Explicitly handle all cases in switch statements
author | Guido Berhoerster <guido+pwm@berhoerster.name> |
---|---|
date | Tue, 28 Nov 2017 15:09:19 +0100 |
parents | 00d782cb45fa |
children | 2a8298bafec2 |
line wrap: on
line diff
--- a/pwm.c Thu Sep 28 10:06:59 2017 +0200 +++ b/pwm.c Tue Nov 28 15:09:19 2017 +0100 @@ -182,6 +182,8 @@ goto out; } goto next; + case TOK_ERR_OK: + break; } /* expand macros */ @@ -224,6 +226,8 @@ fprintf(stderr, "received signal, quitting\n"); case CMD_QUIT: /* FALLTHROUGH */ goto quit; + default: + break; } ctx->prev_cmd = cmd->full_cmd;