Module Name: src
Committed By: rillig
Date: Thu May 19 20:09:46 UTC 2022
Modified Files:
src/games/gomoku: main.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/games/gomoku/main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/games/gomoku/main.c
diff -u src/games/gomoku/main.c:1.39 src/games/gomoku/main.c:1.40
--- src/games/gomoku/main.c:1.39 Wed May 18 19:29:00 2022
+++ src/games/gomoku/main.c Thu May 19 20:09:46 2022
@@ -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