Browse Source

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.
James Buren 3 years ago
parent
commit
4a55d9de3c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/borg/cache_sync/unpack_template.h

+ 1 - 1
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; }