Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Feb 2011 19:27:49 +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-8@freebsd.org
Subject:   svn commit: r218291 - stable/8/include
Message-ID:  <201102041927.p14JRnFX095060@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102041927.p14JRnFX095060>