diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-01-20 01:12:45 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-01-20 01:12:45 +0000 |
commit | 57b37314059f8b61f1abec441194c4819a9670e2 (patch) | |
tree | 3c852cf6bb47c7c4e88055bc6bda8eec4352bdd9 /games/backgammon | |
parent | b40778d23368aecf79c9123c20eb5570a571935f (diff) |
Mark functions that do not return as __dead to quiet gcc warnings.
ok beck@
Diffstat (limited to 'games/backgammon')
-rw-r--r-- | games/backgammon/teachgammon/teach.c | 4 | ||||
-rw-r--r-- | games/backgammon/teachgammon/tutor.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/games/backgammon/teachgammon/teach.c b/games/backgammon/teachgammon/teach.c index b0d56ad9eb2..b8bdfb0e861 100644 --- a/games/backgammon/teachgammon/teach.c +++ b/games/backgammon/teachgammon/teach.c @@ -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(); diff --git a/games/backgammon/teachgammon/tutor.c b/games/backgammon/teachgammon/tutor.c index bdcba4c4610..bd0fab39860 100644 --- a/games/backgammon/teachgammon/tutor.c +++ b/games/backgammon/teachgammon/tutor.c @@ -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; |