Hi,
noreturn is part of the C11 header stdnoreturn.h. Either use _Noreturn or
include that header beforehand.
See: http://en.cppreference.com/w/c/language/_Noreturn
Cheers
pgpIkErznIOL8.pgp
Description: PGP signature
On Thu, Sep 22, 2016 at 09:03:57PM +0200, Markus Wichmann wrote:
> On Thu, Sep 22, 2016 at 08:04:44PM +0200, u...@netbeisser.de wrote:
> > main.c:7:10: error: expected ???=???, ???,???, ???;???, ???asm??? or
> > ???__attribute__??? before ???void???
> > noreturn void __stack_chk_fail(void);
> n
On Thu, Sep 22, 2016 at 08:04:44PM +0200, u...@netbeisser.de wrote:
> main.c:7:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
> ‘void’
> noreturn void __stack_chk_fail(void);
>
noreturn is already a return type (in as much as void is one, namely
syntactically), so remove the
On Thu, Sep 22, 2016 at 11:04 AM, wrote:
>
> Hi,
>
> how does noreturn attribute work? Trying to get this [0] to work, I
> error on noreturn.
>
> /* Note how buffer overruns are undefined behavior and the compilers tend to
>optimize these checks away if you wrote them yourself, this only work
Hi,
how does noreturn attribute work? Trying to get this [0] to work, I
error on noreturn.
/* Note how buffer overruns are undefined behavior and the compilers tend to
optimize these checks away if you wrote them yourself, this only works
robustly because the compiler did it itself. */
ex