Date: Fri, 4 Feb 2011 19:27:59 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r218292 - stable/7/include Message-ID: <201102041927.p14JRx4W095099@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ed Date: Fri Feb 4 19:27:59 2011 New Revision: 218292 URL: http://svn.freebsd.org/changeset/base/218292 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/7/include/assert.h Directory Properties: stable/7/include/ (props changed) Modified: stable/7/include/assert.h ============================================================================== --- stable/7/include/assert.h Fri Feb 4 19:27:49 2011 (r218291) +++ stable/7/include/assert.h Fri Feb 4 19:27:59 2011 (r218292) @@ -60,5 +60,5 @@ #endif /* NDEBUG */ __BEGIN_DECLS -void __assert(const char *, const char *, int, const char *); +void __assert(const char *, const char *, int, const char *) __dead2; __END_DECLS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102041927.p14JRx4W095099>