From 8b4c501d8d846860ee2aef247f582d04d5631e60 Mon Sep 17 00:00:00 2001 From: braewoods <59875102+braewoods@users.noreply.github.com> Date: Wed, 9 Mar 2022 09:10:21 -0600 Subject: [PATCH] [1.2-maint] Backport implicit warning patches from master (#6427) * 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..39f9f3314 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 default: if((size_t)(pe - p) < trail) { goto _out; }