Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ftp Try to avoid a (bogus) fatal warning from clang.
details: https://anonhg.NetBSD.org/src/rev/94743acab4b2
branches: trunk
changeset: 448633:94743acab4b2
user: martin <martin%NetBSD.org@localhost>
date: Wed Feb 06 07:56:42 2019 +0000
description:
Try to avoid a (bogus) fatal warning from clang.
diffstat:
usr.bin/ftp/cmds.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 20751d57405e -r 94743acab4b2 usr.bin/ftp/cmds.c
--- a/usr.bin/ftp/cmds.c Wed Feb 06 07:56:14 2019 +0000
+++ b/usr.bin/ftp/cmds.c Wed Feb 06 07:56:42 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cmds.c,v 1.139 2019/02/04 04:09:13 mrg Exp $ */
+/* $NetBSD: cmds.c,v 1.140 2019/02/06 07:56:42 martin Exp $ */
/*-
* Copyright (c) 1996-2009 The NetBSD Foundation, Inc.
@@ -96,7 +96,7 @@
#if 0
static char sccsid[] = "@(#)cmds.c 8.6 (Berkeley) 10/9/94";
#else
-__RCSID("$NetBSD: cmds.c,v 1.139 2019/02/04 04:09:13 mrg Exp $");
+__RCSID("$NetBSD: cmds.c,v 1.140 2019/02/06 07:56:42 martin Exp $");
#endif
#endif /* not lint */
@@ -1781,6 +1781,11 @@
{
quit(0, NULL);
+ /*
+ * quit is not __dead, but for our invocation it never will return,
+ * but some compilers are not smart enough to find this out.
+ */
+ exit(0);
}
/*
Home |
Main Index |
Thread Index |
Old Index