1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-06 12:01:08 +03:00

Annotate swtich fall-through

The clang default to warning for missing fall-through and it does
not support all comment-like annotation that gcc does.  Use C23
[[fallthrough]] annotation instead.
proper attribute instead.

Reviewed-by: Collin Funk <collin.funk1@gmail.com>
This commit is contained in:
Adhemerval Zanella
2025-10-28 14:08:30 -03:00
parent 543ddd628f
commit 970364dac0
41 changed files with 75 additions and 67 deletions

View File

@@ -134,7 +134,7 @@ _dl_exception_create_format (struct dl_exception *exception, const char *objname
++p;
break;
}
/* Fall through. */
[[fallthrough]];
case 'x':
length += INT_WIDTH / 4;
break;
@@ -219,7 +219,7 @@ _dl_exception_create_format (struct dl_exception *exception, const char *objname
++p;
break;
}
/* FALLTHROUGH */
[[fallthrough]];
default:
_dl_fatal_printf ("Fatal error:"
" invalid format in exception string\n");