aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2021-01-05 16:44:09 +0000
committerRoss Burton <ross.burton@arm.com>2021-01-08 13:14:01 +0000
commit8b062377a9cb767043b444208eee0b6b6b249971 (patch)
treee2cf2209a0cabb480eba0e06d28a71f71eb95cb9
parentaa1a3d74d1ae1f322022df4c67ea71c01848fb12 (diff)
downloadpseudo-8b062377a9cb767043b444208eee0b6b6b249971.tar.gz
pseudo-8b062377a9cb767043b444208eee0b6b6b249971.tar.bz2
pseudo-8b062377a9cb767043b444208eee0b6b6b249971.zip
Silence switch block warnings
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 <ross.burton@arm.com>
-rw-r--r--pseudo.c2
-rw-r--r--pseudo_client.c3
2 files changed, 4 insertions, 1 deletions
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: