From 596e33b68dd8c8d66a878b6ffd1469d55c1b3ed1 Mon Sep 17 00:00:00 2001 From: James Buren Date: Wed, 9 Mar 2022 05:00:08 -0600 Subject: [PATCH] properly suppress -Wimplicit-fallthrough It turns out that explaining the comment actually breaks its intended usage. --- 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 3627921e..39f9f331 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; // fallthrough (suppresses -Wimplicit-fallthrough) + ++p; // fallthrough default: if((size_t)(pe - p) < trail) { goto _out; }