git: <assert.h>: add missing __dead2 to __assert().

Sascha Wildner swildner at crater.dragonflybsd.org
Mon May 20 12:17:18 PDT 2019


commit 8ef931ae48fd83bb992f78d06a76d84db0a8353b
Author: Ed Schouten <ed at FreeBSD.org>
Date:   Sun Jan 9 21:39:46 2011 +0000

    <assert.h>: 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().
    
    Taken-from: FreeBSD (r217207)
    Submitted-by: Jan Beich

Summary of changes:
 include/assert.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8ef931ae48fd83bb992f78d06a76d84db0a8353b


-- 
DragonFly BSD source repository


More information about the Commits mailing list