From 85f41f4c8fda4c475180c11f79f5b868b62b9435 Mon Sep 17 00:00:00 2001 From: Florian Krohm Date: Wed, 5 Oct 2011 14:51:55 +0000 Subject: [PATCH] Declare _exit as "noreturn". This will avoid a GCC warning. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12106 --- coregrind/m_replacemalloc/vg_replace_malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.47.2