Module Name:    src
Committed By:   joerg
Date:           Fri Sep 16 16:05:59 UTC 2011

Modified Files:
        src/lib/libc/isc: assertions.c
        src/lib/libc/misc: stack_protector.c
        src/lib/libc/thread-stub: thread-stub.c
        src/lib/libc/time: zdump.c
        src/lib/libpthread: pthread.c pthread_int.h

Log Message:
Use __dead


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/isc/assertions.c
cvs rdiff -u -r1.5 -r1.6 src/lib/libc/misc/stack_protector.c
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/thread-stub/thread-stub.c
cvs rdiff -u -r1.23 -r1.24 src/lib/libc/time/zdump.c
cvs rdiff -u -r1.123 -r1.124 src/lib/libpthread/pthread.c
cvs rdiff -u -r1.79 -r1.80 src/lib/libpthread/pthread_int.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/isc/assertions.c
diff -u src/lib/libc/isc/assertions.c:1.6 src/lib/libc/isc/assertions.c:1.7
--- src/lib/libc/isc/assertions.c:1.6	Sun Apr 12 17:07:17 2009
+++ src/lib/libc/isc/assertions.c	Fri Sep 16 16:05:58 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: assertions.c,v 1.6 2009/04/12 17:07:17 christos Exp $	*/
+/*	$NetBSD: assertions.c,v 1.7 2011/09/16 16:05:58 joerg Exp $	*/
 
 /*
  * Copyright (C) 2004, 2005, 2008  Internet Systems Consortium, Inc. ("ISC")
@@ -22,7 +22,7 @@
 #ifdef notdef
 static const char rcsid[] = "Id: assertions.c,v 1.5 2008/11/14 02:36:51 marka Exp";
 #else
-__RCSID("$NetBSD: assertions.c,v 1.6 2009/04/12 17:07:17 christos Exp $");
+__RCSID("$NetBSD: assertions.c,v 1.7 2011/09/16 16:05:58 joerg Exp $");
 #endif
 #endif
 
@@ -41,7 +41,7 @@
  * Forward.
  */
 
-static void default_assertion_failed(const char *, int, assertion_type,
+__dead static void default_assertion_failed(const char *, int, assertion_type,
 				     const char *, int);
 
 /*

Index: src/lib/libc/misc/stack_protector.c
diff -u src/lib/libc/misc/stack_protector.c:1.5 src/lib/libc/misc/stack_protector.c:1.6
--- src/lib/libc/misc/stack_protector.c:1.5	Tue Dec  7 20:10:53 2010
+++ src/lib/libc/misc/stack_protector.c	Fri Sep 16 16:05:59 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: stack_protector.c,v 1.5 2010/12/07 20:10:53 joerg Exp $	*/
+/*	$NetBSD: stack_protector.c,v 1.6 2011/09/16 16:05:59 joerg Exp $	*/
 /*	$OpenBSD: stack_protector.c,v 1.10 2006/03/31 05:34:44 deraadt Exp $	*/
 
 /*
@@ -28,7 +28,7 @@
  *
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: stack_protector.c,v 1.5 2010/12/07 20:10:53 joerg Exp $");
+__RCSID("$NetBSD: stack_protector.c,v 1.6 2011/09/16 16:05:59 joerg Exp $");
 
 #ifdef _LIBC
 #include "namespace.h"
@@ -50,7 +50,7 @@
 
 long __stack_chk_guard[8] = {0, 0, 0, 0, 0, 0, 0, 0};
 static void __fail(const char *) __attribute__((__noreturn__));
-void __stack_chk_fail_local(void);
+__dead void __stack_chk_fail_local(void);
 void __guard_setup(void);
 
 void

Index: src/lib/libc/thread-stub/thread-stub.c
diff -u src/lib/libc/thread-stub/thread-stub.c:1.21 src/lib/libc/thread-stub/thread-stub.c:1.22
--- src/lib/libc/thread-stub/thread-stub.c:1.21	Fri Jan 30 23:21:03 2009
+++ src/lib/libc/thread-stub/thread-stub.c	Fri Sep 16 16:05:59 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: thread-stub.c,v 1.21 2009/01/30 23:21:03 ad Exp $	*/
+/*	$NetBSD: thread-stub.c,v 1.22 2011/09/16 16:05:59 joerg Exp $	*/
 
 /*-
  * Copyright (c) 2003, 2009 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: thread-stub.c,v 1.21 2009/01/30 23:21:03 ad Exp $");
+__RCSID("$NetBSD: thread-stub.c,v 1.22 2011/09/16 16:05:59 joerg Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 /*
@@ -343,7 +343,7 @@
 int	__libc_thr_yield_stub(void);
 int	__libc_thr_create_stub(thr_t *, const thrattr_t *,
 	    void *(*)(void *), void *);
-void	__libc_thr_exit_stub(void *);
+__dead void	__libc_thr_exit_stub(void *);
 int	*__libc_thr_errno_stub(void);
 int	__libc_thr_setcancelstate_stub(int, int *);
 int	__libc_thr_equal_stub(pthread_t, pthread_t);

Index: src/lib/libc/time/zdump.c
diff -u src/lib/libc/time/zdump.c:1.23 src/lib/libc/time/zdump.c:1.24
--- src/lib/libc/time/zdump.c:1.23	Sun Sep  4 13:25:22 2011
+++ src/lib/libc/time/zdump.c	Fri Sep 16 16:05:59 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: zdump.c,v 1.23 2011/09/04 13:25:22 christos Exp $	*/
+/*	$NetBSD: zdump.c,v 1.24 2011/09/16 16:05:59 joerg Exp $	*/
 /*
 ** This file is in the public domain, so clarified as of
 ** 2009-05-17 by Arthur David Olson.
@@ -7,7 +7,7 @@
 #include <sys/cdefs.h>
 #ifndef lint
 #ifndef NOID
-__RCSID("$NetBSD: zdump.c,v 1.23 2011/09/04 13:25:22 christos Exp $");
+__RCSID("$NetBSD: zdump.c,v 1.24 2011/09/16 16:05:59 joerg Exp $");
 #endif /* !defined NOID */
 #endif /* !defined lint */
 
@@ -244,7 +244,7 @@
 	warned = TRUE;
 }
 
-static void
+__dead static void
 usage(FILE *stream, int status)
 {
 	(void) fprintf(stream,

Index: src/lib/libpthread/pthread.c
diff -u src/lib/libpthread/pthread.c:1.123 src/lib/libpthread/pthread.c:1.124
--- src/lib/libpthread/pthread.c:1.123	Wed Mar 30 00:03:26 2011
+++ src/lib/libpthread/pthread.c	Fri Sep 16 16:05:59 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: pthread.c,v 1.123 2011/03/30 00:03:26 joerg Exp $	*/
+/*	$NetBSD: pthread.c,v 1.124 2011/09/16 16:05:59 joerg Exp $	*/
 
 /*-
  * Copyright (c) 2001, 2002, 2003, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread.c,v 1.123 2011/03/30 00:03:26 joerg Exp $");
+__RCSID("$NetBSD: pthread.c,v 1.124 2011/09/16 16:05:59 joerg Exp $");
 
 #define	__EXPOSE_STACK	1
 
@@ -457,7 +457,7 @@
 }
 
 
-static void
+__dead static void
 pthread__create_tramp(void *cookie)
 {
 	pthread_t self;

Index: src/lib/libpthread/pthread_int.h
diff -u src/lib/libpthread/pthread_int.h:1.79 src/lib/libpthread/pthread_int.h:1.80
--- src/lib/libpthread/pthread_int.h:1.79	Fri Aug  5 03:55:31 2011
+++ src/lib/libpthread/pthread_int.h	Fri Sep 16 16:05:59 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: pthread_int.h,v 1.79 2011/08/05 03:55:31 lukem Exp $	*/
+/*	$NetBSD: pthread_int.h,v 1.80 2011/09/16 16:05:59 joerg Exp $	*/
 
 /*-
  * Copyright (c) 2001, 2002, 2003, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -300,12 +300,12 @@
         } while (/*CONSTCOND*/0)
 
 void	pthread__destroy_tsd(pthread_t) PTHREAD_HIDE;
-void	pthread__assertfunc(const char *, int, const char *, const char *)
+__dead void	pthread__assertfunc(const char *, int, const char *, const char *)
 			    PTHREAD_HIDE;
 void	pthread__errorfunc(const char *, int, const char *, const char *)
 			   PTHREAD_HIDE;
 char	*pthread__getenv(const char *) PTHREAD_HIDE;
-void	pthread__cancelled(void) PTHREAD_HIDE;
+__dead void	pthread__cancelled(void) PTHREAD_HIDE;
 void	pthread__mutex_deferwake(pthread_t, pthread_mutex_t *) PTHREAD_HIDE;
 int	pthread__checkpri(int) PTHREAD_HIDE;
 

Reply via email to