mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
setjmp.h: add noreturn keyword on longjmp variants.
This commit is contained in:
parent
4a062f23c6
commit
679518f417
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user