Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jan 2011 21:39:46 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r217207 - head/include
Message-ID:  <201101092139.p09Ldkpo057421@svn.freebsd.org>

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



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