Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libpthread threadfunc - we do return from swapcont...



details:   https://anonhg.NetBSD.org/src/rev/0594d69f93a1
branches:  trunk
changeset: 359875:0594d69f93a1
user:      uwe <uwe%NetBSD.org@localhost>
date:      Tue Feb 27 20:34:04 2018 +0000

description:
threadfunc - we do return from swapcontext() (since revision 1.2),
so drop the NOTREACHED comment.

diffstat:

 tests/lib/libpthread/t_swapcontext.c |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 9bb65578f39f -r 0594d69f93a1 tests/lib/libpthread/t_swapcontext.c
--- a/tests/lib/libpthread/t_swapcontext.c      Tue Feb 27 20:31:35 2018 +0000
+++ b/tests/lib/libpthread/t_swapcontext.c      Tue Feb 27 20:34:04 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_swapcontext.c,v 1.6 2018/02/27 20:31:35 uwe Exp $ */
+/* $NetBSD: t_swapcontext.c,v 1.7 2018/02/27 20:34:04 uwe Exp $ */
 
 /*
  * Copyright (c) 2012 Emmanuel Dreyfus. All rights reserved.
@@ -82,7 +82,6 @@
        ATF_REQUIRE_MSG(swapcontext(&octx, &nctx) != -1, "swapcontext failed: %s",
            strerror(errno));
 
-       /* NOTREACHED */
        return NULL;
 }
 



Home | Main Index | Thread Index | Old Index