mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
tst-atexit-common.c: Mark _exit_with_flush as noreturn
Mark _exit_with_flush as noreturn to silence the Clang error on tst-atexit-common.c: In file included from tst-atexit.c:22: ../stdlib/tst-atexit-common.c:113:5: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough] 113 | case 0: /* Child. */ | ^ ../stdlib/tst-atexit-common.c:113:5: note: insert 'break;' to avoid fall-through 113 | case 0: /* Child. */ | ^ | break; 1 error generated. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
61c3450db9
commit
560cfeb826
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ static char crumbs[sizeof (expected)];
|
|||
static int next_slot = 0;
|
||||
|
||||
/* Helper: flush stdout and _exit. */
|
||||
__attribute__ ((__noreturn__))
|
||||
static void
|
||||
_exit_with_flush (int code)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue