From owner-svn-src-stable@FreeBSD.ORG Fri Feb 4 19:27:49 2011 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C705D1065672; Fri, 4 Feb 2011 19:27:49 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B63C68FC0C; Fri, 4 Feb 2011 19:27:49 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p14JRnWr095062; Fri, 4 Feb 2011 19:27:49 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p14JRnFX095060; Fri, 4 Feb 2011 19:27:49 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201102041927.p14JRnFX095060@svn.freebsd.org> From: Ed Schouten Date: Fri, 4 Feb 2011 19:27:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r218291 - stable/8/include X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Feb 2011 19:27:49 -0000 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_ */