setjmp.h: add noreturn keyword on longjmp variants.

This commit is contained in:
Jérôme Duval 2018-07-21 12:23:42 +02:00
parent 4a062f23c6
commit 679518f417

View File

@ -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
}