svn commit: r218291 - stable/8/include

[ Available lists | Index of svn-src-stable-8 | Month of Feb 2011 | Week of 4 Feb 2011 | Raw email | View thread | Wrap long lines | Reply ]
From
Ed Schouten <ed@FreeBSD.org>
Date
4 Feb 2011 19:27:49
Subject
svn commit: r218291 - stable/8/include
Message-ID
201102041927.p14JRnFX095060@svn.freebsd.org


[ Hide this part ]
Author: ed
Date: Fri Feb 4 19:27:49 2011
New Revision: 218291
URL: http://svn.freebsd.org/changeset/base/218291

Log:
MFC r217207:

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().

Modified:
stable/8/include/assert.h
Directory Properties:
stable/8/include/ (props changed)

Modified: stable/8/include/assert.h
==============================================================================
--- stable/8/include/assert.h Fri Feb 4 18:36:09 2011 (r218290)
+++ stable/8/include/assert.h Fri Feb 4 19:27:49 2011 (r218291)
@@ -62,6 +62,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_ */

Elapsed time: 0.099 seconds