Use __dead
This commit is contained in:
parent
bd80b77cd9
commit
67f518f496
@ -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")
|
* Copyright (C) 2004, 2005, 2008 Internet Systems Consortium, Inc. ("ISC")
|
||||||
@ -22,7 +22,7 @@
|
|||||||
#ifdef notdef
|
#ifdef notdef
|
||||||
static const char rcsid[] = "Id: assertions.c,v 1.5 2008/11/14 02:36:51 marka Exp";
|
static const char rcsid[] = "Id: assertions.c,v 1.5 2008/11/14 02:36:51 marka Exp";
|
||||||
#else
|
#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
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ __RCSID("$NetBSD: assertions.c,v 1.6 2009/04/12 17:07:17 christos Exp $");
|
|||||||
* Forward.
|
* 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);
|
const char *, int);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -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 $ */
|
/* $OpenBSD: stack_protector.c,v 1.10 2006/03/31 05:34:44 deraadt Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -28,7 +28,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#include <sys/cdefs.h>
|
#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
|
#ifdef _LIBC
|
||||||
#include "namespace.h"
|
#include "namespace.h"
|
||||||
@ -50,7 +50,7 @@ void xprintf(const char *fmt, ...);
|
|||||||
|
|
||||||
long __stack_chk_guard[8] = {0, 0, 0, 0, 0, 0, 0, 0};
|
long __stack_chk_guard[8] = {0, 0, 0, 0, 0, 0, 0, 0};
|
||||||
static void __fail(const char *) __attribute__((__noreturn__));
|
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 __guard_setup(void);
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -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.
|
* Copyright (c) 2003, 2009 The NetBSD Foundation, Inc.
|
||||||
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#if defined(LIBC_SCCS) && !defined(lint)
|
#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 */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -343,7 +343,7 @@ thr_t __libc_thr_self_stub(void);
|
|||||||
int __libc_thr_yield_stub(void);
|
int __libc_thr_yield_stub(void);
|
||||||
int __libc_thr_create_stub(thr_t *, const thrattr_t *,
|
int __libc_thr_create_stub(thr_t *, const thrattr_t *,
|
||||||
void *(*)(void *), void *);
|
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_errno_stub(void);
|
||||||
int __libc_thr_setcancelstate_stub(int, int *);
|
int __libc_thr_setcancelstate_stub(int, int *);
|
||||||
int __libc_thr_equal_stub(pthread_t, pthread_t);
|
int __libc_thr_equal_stub(pthread_t, pthread_t);
|
||||||
|
@ -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
|
** This file is in the public domain, so clarified as of
|
||||||
** 2009-05-17 by Arthur David Olson.
|
** 2009-05-17 by Arthur David Olson.
|
||||||
@ -7,7 +7,7 @@
|
|||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
#ifndef NOID
|
#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 NOID */
|
||||||
#endif /* !defined lint */
|
#endif /* !defined lint */
|
||||||
|
|
||||||
@ -244,7 +244,7 @@ const char * const zone;
|
|||||||
warned = TRUE;
|
warned = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
__dead static void
|
||||||
usage(FILE *stream, int status)
|
usage(FILE *stream, int status)
|
||||||
{
|
{
|
||||||
(void) fprintf(stream,
|
(void) fprintf(stream,
|
||||||
|
@ -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.
|
* Copyright (c) 2001, 2002, 2003, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||||
@ -30,7 +30,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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
|
#define __EXPOSE_STACK 1
|
||||||
|
|
||||||
@ -457,7 +457,7 @@ pthread_create(pthread_t *thread, const pthread_attr_t *attr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
__dead static void
|
||||||
pthread__create_tramp(void *cookie)
|
pthread__create_tramp(void *cookie)
|
||||||
{
|
{
|
||||||
pthread_t self;
|
pthread_t self;
|
||||||
|
@ -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.
|
* Copyright (c) 2001, 2002, 2003, 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||||
@ -300,12 +300,12 @@ pthread__id(vaddr_t sp) {
|
|||||||
} while (/*CONSTCOND*/0)
|
} while (/*CONSTCOND*/0)
|
||||||
|
|
||||||
void pthread__destroy_tsd(pthread_t) PTHREAD_HIDE;
|
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;
|
PTHREAD_HIDE;
|
||||||
void pthread__errorfunc(const char *, int, const char *, const char *)
|
void pthread__errorfunc(const char *, int, const char *, const char *)
|
||||||
PTHREAD_HIDE;
|
PTHREAD_HIDE;
|
||||||
char *pthread__getenv(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;
|
void pthread__mutex_deferwake(pthread_t, pthread_mutex_t *) PTHREAD_HIDE;
|
||||||
int pthread__checkpri(int) PTHREAD_HIDE;
|
int pthread__checkpri(int) PTHREAD_HIDE;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user