From owner-svn-src-stable@FreeBSD.ORG Fri Feb 4 19:27:59 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 F17B11065670; Fri, 4 Feb 2011 19:27:59 +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 E09068FC13; Fri, 4 Feb 2011 19:27:59 +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 p14JRx4R095101; Fri, 4 Feb 2011 19:27:59 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p14JRx4W095099; Fri, 4 Feb 2011 19:27:59 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201102041927.p14JRx4W095099@svn.freebsd.org> From: Ed Schouten Date: Fri, 4 Feb 2011 19:27:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r218292 - stable/7/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:28:00 -0000 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