From 679518f417b85aa6bea3407877f36cbb1414beb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sat, 21 Jul 2018 12:23:42 +0200 Subject: [PATCH] setjmp.h: add noreturn keyword on longjmp variants. --- headers/posix/setjmp.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/headers/posix/setjmp.h b/headers/posix/setjmp.h index 67f4ec04be..a04f954e96 100644 --- a/headers/posix/setjmp.h +++ b/headers/posix/setjmp.h @@ -1,5 +1,5 @@ /* - * Copyright 2004-2012 Haiku, Inc. + * Copyright 2004-2018 Haiku, Inc. * Distributed under the terms of the MIT License. */ #ifndef _SETJMP_H_ @@ -29,9 +29,12 @@ extern int _setjmp(jmp_buf jumpBuffer); extern int setjmp(jmp_buf jumpBuffer); extern int sigsetjmp(jmp_buf jumpBuffer, int saveMask); -extern void _longjmp(jmp_buf jumpBuffer, int value); -extern void longjmp(jmp_buf jumpBuffer, int value); -extern void siglongjmp(sigjmp_buf jumpBuffer, int value); +extern void _longjmp(jmp_buf jumpBuffer, int value) + __attribute__ ((noreturn)); +extern void longjmp(jmp_buf jumpBuffer, int value) + __attribute__ ((noreturn)); +extern void siglongjmp(sigjmp_buf jumpBuffer, int value) + __attribute__ ((noreturn)); #ifdef __cplusplus }