1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

Mark functions that do not return as __dead to quiet gcc warnings.

ok beck@
This commit is contained in:
krw 2017-01-20 01:12:44 +00:00
parent 952abe0ddc
commit 25bf4423c8
3 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $OpenBSD: teach.c,v 1.16 2015/12/02 20:05:01 tb Exp $ */
/* $OpenBSD: teach.c,v 1.17 2017/01/20 01:12:44 krw Exp $ */
/*
* Copyright (c) 1980, 1993
@ -113,7 +113,7 @@ main(int argc, char *argv[])
/* NOT REACHED */
}
void
__dead void
leave(void)
{
clear();

View File

@ -1,4 +1,4 @@
/* $OpenBSD: tutor.c,v 1.8 2016/01/08 13:40:05 tb Exp $ */
/* $OpenBSD: tutor.c,v 1.9 2017/01/20 01:12:44 krw Exp $ */
/*
* Copyright (c) 1980, 1993
@ -34,7 +34,7 @@
static const char better[] = "That is a legal move, but there is a better one.\n";
void
__dead void
tutor(void)
{
int i, j, k;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: statd.c,v 1.2 2015/01/16 06:40:20 deraadt Exp $ */
/* $OpenBSD: statd.c,v 1.3 2017/01/20 01:12:44 krw Exp $ */
/*
* Copyright (c) 1997 Christos Zoulas. All rights reserved.
@ -80,7 +80,7 @@ static int unmon_host(DBT *, HostInfo *, void *);
static int notify_one(DBT *, HostInfo *, void *);
static void init_file(char *);
static int notify_one_host(char *);
static void die(int);
static __dead void die(int);
int main(int, char **);
@ -588,7 +588,7 @@ notify_one_host(char *hostname)
return (TRUE);
}
static void
static __dead void
die(int n)
{
(*db->close)(db);