From: Julian Seward Date: Mon, 9 May 2011 09:15:28 +0000 (+0000) Subject: ppc{32,64}-linux: mark VG_MINIMAL_LONGJMP as noreturn, since it is, X-Git-Tag: svn/VALGRIND_3_7_0~505 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b113473e031fc11827655523cdaac1c3d37516dd;p=thirdparty%2Fvalgrind.git 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 --- diff --git a/include/pub_tool_libcsetjmp.h b/include/pub_tool_libcsetjmp.h index 3c0f15cd20..aa484cf98e 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