Slightly alter a fallthrough comment so that GCC recognises it, and add a default: case to a switch which explicitly only handles a few values.
Signed-off-by: Ross Burton <[email protected]> --- pseudo.c | 2 ++ pseudo_client.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pseudo.c b/pseudo.c index ff8e1b9..55f0f18 100644 --- a/pseudo.c +++ b/pseudo.c @@ -1036,6 +1036,8 @@ pseudo_op(pseudo_msg_t *msg, const char *program, const char *tag, char **respon pdb_may_unlink_file(msg, msg->client); } break; + default: + break; } op_exit: diff --git a/pseudo_client.c b/pseudo_client.c index 3c49644..eeb1fdc 100644 --- a/pseudo_client.c +++ b/pseudo_client.c @@ -1860,7 +1860,8 @@ pseudo_client_op(pseudo_op_t op, int access, int fd, int dirfd, const char *path break; case OP_OPEN: pseudo_client_path(fd, path); - case OP_EXEC: /* fallthrough */ + /* fallthrough */ + case OP_EXEC: do_request = pseudo_client_logging; break; case OP_CLOSE: -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#146543): https://lists.openembedded.org/g/openembedded-core/message/146543 Mute This Topic: https://lists.openembedded.org/mt/79523826/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
