Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/tls It would be nice if lint knew that abort() will...



details:   https://anonhg.NetBSD.org/src/rev/e115c148665d
branches:  trunk
changeset: 763382:e115c148665d
user:      he <he%NetBSD.org@localhost>
date:      Fri Mar 18 14:56:01 2011 +0000

description:
It would be nice if lint knew that abort() will never return.
For now just insert a /* NOTREACHED */ comment to fix the build failure.

diffstat:

 lib/libc/tls/tls.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 340dbd782460 -r e115c148665d lib/libc/tls/tls.c
--- a/lib/libc/tls/tls.c        Fri Mar 18 10:50:36 2011 +0000
+++ b/lib/libc/tls/tls.c        Fri Mar 18 14:56:01 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tls.c,v 1.4 2011/03/17 22:13:58 skrll Exp $    */
+/*     $NetBSD: tls.c,v 1.5 2011/03/18 14:56:01 he Exp $       */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: tls.c,v 1.4 2011/03/17 22:13:58 skrll Exp $");
+__RCSID("$NetBSD: tls.c,v 1.5 2011/03/18 14:56:01 he Exp $");
 
 #include "namespace.h"
 
@@ -70,6 +70,7 @@
 {
 
        abort();
+       /* NOTREACHED */
 }
 
 __weak_alias(_rtld_tls_allocate, __libc_rtld_tls_allocate)



Home | Main Index | Thread Index | Old Index