sprinkle some __noreturn__ attributes, saves gcc4 warnings elsewhere
This commit is contained in:
parent
2f959928c8
commit
eb92277cd7
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rtld.h,v 1.72 2006/03/21 17:48:10 christos Exp $ */
|
||||
/* $NetBSD: rtld.h,v 1.73 2006/05/22 19:49:09 drochner Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1996 John D. Polstra.
|
||||
@ -221,7 +221,7 @@ int dladdr(const void *, Dl_info *);
|
||||
|
||||
void _rtld_error(const char *, ...)
|
||||
__attribute__((__format__(__printf__,1,2)));
|
||||
void _rtld_die(void);
|
||||
void _rtld_die(void) __attribute__((__noreturn__));
|
||||
void *_rtld_objmain_sym(const char *);
|
||||
void _rtld_debug_state(void);
|
||||
void _rtld_linkmap_add(Obj_Entry *);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rtldenv.h,v 1.6 2003/07/24 10:12:26 skrll Exp $ */
|
||||
/* $NetBSD: rtldenv.h,v 1.7 2006/05/22 19:49:09 drochner Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1996 Matt Thomas <matt@3am-software.com>
|
||||
@ -51,9 +51,9 @@ void xwarn(const char *, ...)
|
||||
void xwarnx(const char *, ...)
|
||||
__attribute__((__format__(__printf__, 1, 2)));
|
||||
void xerr(int, const char *, ...)
|
||||
__attribute__((__format__(__printf__, 2, 3)));
|
||||
__attribute__((__noreturn__, __format__(__printf__, 2, 3)));
|
||||
void xerrx(int, const char *, ...)
|
||||
__attribute__((__format__(__printf__, 2, 3)));
|
||||
__attribute__((__noreturn__, __format__(__printf__, 2, 3)));
|
||||
|
||||
void xassert(const char *, int, const char *);
|
||||
const char *xstrerror(int);
|
||||
|
Loading…
Reference in New Issue
Block a user