|
From: <sv...@va...> - 2011-10-05 14:56:40
|
Author: florian
Date: 2011-10-05 15:51:55 +0100 (Wed, 05 Oct 2011)
New Revision: 12106
Log:
Declare _exit as "noreturn". This will avoid a GCC warning.
Modified:
trunk/coregrind/m_replacemalloc/vg_replace_malloc.c
Modified: trunk/coregrind/m_replacemalloc/vg_replace_malloc.c
===================================================================
--- trunk/coregrind/m_replacemalloc/vg_replace_malloc.c 2011-10-05 14:49:12 UTC (rev 12105)
+++ trunk/coregrind/m_replacemalloc/vg_replace_malloc.c 2011-10-05 14:51:55 UTC (rev 12106)
@@ -120,7 +120,7 @@
__asm__ __volatile__(".word 0xFFFFFFFF");
while (1) {}
# else
- extern void _exit(int status);
+ extern __attribute__ ((__noreturn__)) void _exit(int status);
_exit(x);
# endif
}
|