diff options
| author | rillig <rillig@NetBSD.org> | 2022-05-19 20:09:46 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2022-05-19 20:09:46 +0000 |
| commit | f75242df3115ced920dbc8aa5715ea918856fe1b (patch) | |
| tree | bad836a450d9786e775b120bc82fbc3cf7951644 | |
| parent | 2e48be3d9b0ea5cdb6ab7337dccd08253d6ab573 (diff) | |
gomoku: remove unreachable code at the end of main
In C99 mode, lint accepts when control gets to the end of main without
returning a value. It does not know anything about __dead though.
No binary change.
| -rw-r--r-- | games/gomoku/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/games/gomoku/main.c b/games/gomoku/main.c index d9538a8140d..b16edba645a 100644 --- a/games/gomoku/main.c +++ b/games/gomoku/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.39 2022/05/18 19:29:00 rillig Exp $ */ +/* $NetBSD: main.c,v 1.40 2022/05/19 20:09:46 rillig Exp $ */ /* * Copyright (c) 1994 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1994\ #if 0 static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 5/4/95"; #else -__RCSID("$NetBSD: main.c,v 1.39 2022/05/18 19:29:00 rillig Exp $"); +__RCSID("$NetBSD: main.c,v 1.40 2022/05/19 20:09:46 rillig Exp $"); #endif #endif /* not lint */ @@ -353,8 +353,6 @@ again: } } quit(); - /* NOTREACHED */ - return 0; } static int |
