This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fix implicit-fallthrough warnings in tst-setjmp.c
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Fri, 15 Feb 2019 09:05:10 +0100
- Subject: Re: Fix implicit-fallthrough warnings in tst-setjmp.c
- References: <alpine.DEB.2.21.1902142203310.4022@digraph.polyomino.org.uk>
* Joseph Myers:
> diff --git a/setjmp/tst-setjmp.c b/setjmp/tst-setjmp.c
> index e83e896ebe..b377393ecf 100644
> --- a/setjmp/tst-setjmp.c
> +++ b/setjmp/tst-setjmp.c
> @@ -22,7 +22,7 @@
> static jmp_buf env;
> static int last_value = -1, lose = 0;
>
> -static void
> +static __attribute__ ((__noreturn__)) void
> jump (int val)
> {
> longjmp (env, val);
I think this patch is okay to push.