aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-12-17 05:51:07 +0800
committerH.J. Lu <hjl.tools@gmail.com>2024-12-18 01:54:26 +0800
commit560cfeb82693912723ff0e11232c86f9b492a1a0 (patch)
tree265ae4050901bcd8c38faee903bcb316186bd343
parent61c3450db96dce96ad2b24b4f0b548e6a46d68e5 (diff)
downloadglibc-560cfeb82693912723ff0e11232c86f9b492a1a0.zip
glibc-560cfeb82693912723ff0e11232c86f9b492a1a0.tar.gz
glibc-560cfeb82693912723ff0e11232c86f9b492a1a0.tar.bz2
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>
-rw-r--r--stdlib/tst-atexit-common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stdlib/tst-atexit-common.c b/stdlib/tst-atexit-common.c
index 4bea464..f77ccbb 100644
--- a/stdlib/tst-atexit-common.c
+++ b/stdlib/tst-atexit-common.c
@@ -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)
{