1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-25 07:49:18 +00:00

Add missing __dead2 to __assert().

__assert() is called when an assertion fails. After printing an error
message, it will call abort(). abort() never returns, hence it has the
__dead2 attribute. Also add this attribute to __assert().

MFC after:	3 weeks
This commit is contained in:
Ed Schouten 2011-01-09 21:39:46 +00:00
parent 4b45b49a70
commit 62779d80fb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217207

View File

@ -58,6 +58,6 @@
#ifndef _ASSERT_H_
#define _ASSERT_H_
__BEGIN_DECLS
void __assert(const char *, const char *, int, const char *);
void __assert(const char *, const char *, int, const char *) __dead2;
__END_DECLS
#endif /* !_ASSERT_H_ */