svn commit: r217207 - head/include

Ed Schouten ed at FreeBSD.org
Sun Jan 9 21:39:47 UTC 2011


Author: ed
Date: Sun Jan  9 21:39:46 2011
New Revision: 217207
URL: http://svn.freebsd.org/changeset/base/217207

Log:
  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().
  
  MFC after:	3 weeks

Modified:
  head/include/assert.h

Modified: head/include/assert.h
==============================================================================
--- head/include/assert.h	Sun Jan  9 21:07:30 2011	(r217206)
+++ head/include/assert.h	Sun Jan  9 21:39:46 2011	(r217207)
@@ -58,6 +58,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-head mailing list