svn commit: r218291 - stable/8/include

Ed Schouten ed at FreeBSD.org
Fri Feb 4 19:27:49 UTC 2011


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_ */


More information about the svn-src-all mailing list