Replace [[fallthrough]] with WEBP_FALLTHROUGH

C and C++ version values based on
https://en.cppreference.com/w/c/23.html and
https://en.cppreference.com/w/cpp/preprocessor/replace.

Change-Id: I1059fa9e17f25f05d452f8dd003ca7d421742bf7
This commit is contained in:
Yannis Guyon
2026-04-09 08:58:49 +00:00
parent c95ed44524
commit 080044c7f2
2 changed files with 18 additions and 3 deletions

View File

@@ -493,12 +493,18 @@ static int ParseFrameArgs(const char* args, WebPMuxFrameInfo* const info) {
&plus_minus, &blend_method, &unused);
switch (num_args) {
case 1:
info->x_offset = info->y_offset = 0; // fall through
info->x_offset = info->y_offset = 0;
WEBP_FALLTHROUGH;
// fall through
case 3:
dispose_method = 0; // fall through
dispose_method = 0;
WEBP_FALLTHROUGH;
// fall through
case 4:
plus_minus = '+';
blend_method = 'b'; // fall through
blend_method = 'b';
WEBP_FALLTHROUGH;
// fall through
case 6:
break;
case 2: