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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user