svn commit: r218292 - stable/7/include

Ed Schouten ed at FreeBSD.org
Fri Feb 4 19:28:00 UTC 2011


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


More information about the svn-src-stable-7 mailing list