summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2021-05-17 12:02:17 +0200
committerAllan McRae <allan@archlinux.org>2021-05-17 12:02:21 +0200
commit58fde8666896639e5cfb3923fbbfd52d166bffe7 (patch)
tree5682cc41c9f3389d9b1e799bf0c69d529a081f61 /lib
parent17ccc2f9c22914d1c20b4f7849130c4171fed54b (diff)
downloadpacman-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')
-rw-r--r--lib/libalpm/sync.c2
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;