diff options
author | Allan McRae <allan@archlinux.org> | 2021-05-17 12:02:17 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2021-05-17 12:02:21 +0200 |
commit | 58fde8666896639e5cfb3923fbbfd52d166bffe7 (patch) | |
tree | 5682cc41c9f3389d9b1e799bf0c69d529a081f61 /lib/libalpm | |
parent | 17ccc2f9c22914d1c20b4f7849130c4171fed54b (diff) | |
download | pacman-58fde8666896639e5cfb3923fbbfd52d166bffe7.tar.gz pacman-58fde8666896639e5cfb3923fbbfd52d166bffe7.tar.xz |
Use attribute to declare case statement fallthroughs
Clang does not recognise the comment style notification of expected
case statement fallthrough.
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r-- | lib/libalpm/sync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index 7ef558c4..36ad6242 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -1026,7 +1026,7 @@ static int check_validity(alpm_handle_t *handle, v->siglevel & ALPM_SIG_PACKAGE_OPTIONAL, v->siglevel & ALPM_SIG_PACKAGE_MARGINAL_OK, v->siglevel & ALPM_SIG_PACKAGE_UNKNOWN_OK); - /* fallthrough */ + __attribute__((fallthrough)); case ALPM_ERR_PKG_INVALID_CHECKSUM: prompt_to_delete(handle, v->path, v->error); break; |