diff options
author | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2011-05-09 09:15:28 +0000 |
---|---|---|
committer | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2011-05-09 09:15:28 +0000 |
commit | 82f8bfd64136d4e5817fbb1bc42d56d25b9d86cc (patch) | |
tree | 48cd0ec47b33bc8bc91204f89b249fc355cdb451 /include | |
parent | 924287005b16d380efe441f6f8182b0ebaabe3eb (diff) |
ppc{32,64}-linux: mark VG_MINIMAL_LONGJMP as noreturn, since it is,
and not doing so leads to compiler warnings for functions that tail
call this one, which themselves are marked "attribute noreturn".
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11732 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'include')
-rw-r--r-- | include/pub_tool_libcsetjmp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/pub_tool_libcsetjmp.h b/include/pub_tool_libcsetjmp.h index 3c0f15cd..aa484cf9 100644 --- a/include/pub_tool_libcsetjmp.h +++ b/include/pub_tool_libcsetjmp.h @@ -69,12 +69,14 @@ #define VG_MINIMAL_JMP_BUF(_name) UInt _name [32+1+1] Int VG_MINIMAL_SETJMP(VG_MINIMAL_JMP_BUF(_env)); +__attribute__((noreturn)) void VG_MINIMAL_LONGJMP(VG_MINIMAL_JMP_BUF(_env)); #elif defined(VGP_ppc64_linux) #define VG_MINIMAL_JMP_BUF(_name) ULong _name [32+1+1] Int VG_MINIMAL_SETJMP(VG_MINIMAL_JMP_BUF(_env)); +__attribute__((noreturn)) void VG_MINIMAL_LONGJMP(VG_MINIMAL_JMP_BUF(_env)); #else |