Преглед изворни кода

properly suppress -Wimplicit-fallthrough

It turns out that explaining the comment actually breaks its
intended usage.
James Buren пре 3 година
родитељ
комит
596e33b68d
1 измењених фајлова са 1 додато и 1 уклоњено
  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; // fallthrough (suppresses -Wimplicit-fallthrough)
+            ++p; // fallthrough
 
         default:
             if((size_t)(pe - p) < trail) { goto _out; }