From 4a55d9de3c19ed5e4a609574b10c2d70b92884c0 Mon Sep 17 00:00:00 2001 From: James Buren Date: Sat, 26 Feb 2022 21:09:05 -0600 Subject: [PATCH] suppress -Wimplicit-fallthrough warning These instances of implicit switch case fallthrough appear to be intentional. Add comments that the compiler understands to suppress the false positive warning. --- src/borg/cache_sync/unpack_template.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/cache_sync/unpack_template.h b/src/borg/cache_sync/unpack_template.h index 5bc48849f..3627921e9 100644 --- a/src/borg/cache_sync/unpack_template.h +++ b/src/borg/cache_sync/unpack_template.h @@ -196,7 +196,7 @@ static inline int unpack_execute(unpack_context* ctx, const char* data, size_t l _fixed_trail_again: - ++p; + ++p; // fallthrough (suppresses -Wimplicit-fallthrough) default: if((size_t)(pe - p) < trail) { goto _out; }