"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Thomas Adam <thomas@xteddy.org>
Subject:
Re: mark got_privsep_exec_child as __dead
To:
Omar Polo <op@omarpolo.com>, gameoftrees@openbsd.org
Date:
Fri, 17 Dec 2021 23:08:56 +0000

Download raw body.

Thread
On Fri, Dec 17, 2021 at 11:37:59PM +0100, Stefan Sperling wrote:
> I am aware that __dead is used in got/got.c already.
> But that was mpi@, it wasn't me.
> 
> Is __dead widely supported? What exactly does it imply?

It's not portable, but it just tells the compiler that the function does not
return anything.  I rather like it, and it's a nice short-hand for the more
verbose  __attribute__ ((__noreturn__))

I'd say, since it's already in there (and also used in a number of other
OpenBSD projects), may as well keep using it where appropriate.

Kindly,
Thomas