From dc608b4b585401d176a05f78507a252e08a48a72 Mon Sep 17 00:00:00 2001 From: Florian Krohm Date: Wed, 5 Oct 2011 14:36:00 +0000 Subject: [PATCH] Declare _exit as "noreturn". This will avoid a GCC warning. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12104 --- memcheck/mc_replace_strmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memcheck/mc_replace_strmem.c b/memcheck/mc_replace_strmem.c index b4ac8898dc..5a01677a4d 100644 --- a/memcheck/mc_replace_strmem.c +++ b/memcheck/mc_replace_strmem.c @@ -140,7 +140,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