From: Florian Krohm Date: Wed, 5 Oct 2011 14:51:55 +0000 (+0000) Subject: Declare _exit as "noreturn". This will avoid a GCC warning. X-Git-Tag: svn/VALGRIND_3_7_0~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85f41f4c8fda4c475180c11f79f5b868b62b9435;p=thirdparty%2Fvalgrind.git Declare _exit as "noreturn". This will avoid a GCC warning. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12106 --- diff --git a/coregrind/m_replacemalloc/vg_replace_malloc.c b/coregrind/m_replacemalloc/vg_replace_malloc.c index 0ee96d8867..3d7e491fe9 100644 --- a/coregrind/m_replacemalloc/vg_replace_malloc.c +++ b/coregrind/m_replacemalloc/vg_replace_malloc.c @@ -120,7 +120,7 @@ static inline void my_exit ( int x ) __asm__ __volatile__(".word 0xFFFFFFFF"); while (1) {} # else - extern void _exit(int status); + extern __attribute__ ((__noreturn__)) void _exit(int status); _exit(x); # endif }