Allow gcc to emit warnings for unsafe usage of setjmp/longjmp
Patch to allow gcc to emit warnings for unsafe usage of setjmp/long Signed-off-by: David Decotigny <gdaviddecotigny@users.sf.net> Signed-off-by: Nigel Croxon <noxorc@mac.com>
This commit is contained in:
parent
3f234f5b6f
commit
4d326eae7d
@ -1,9 +1,10 @@
|
||||
#ifndef GNU_EFI_SETJMP_H
|
||||
#define GNU_EFI_SETJMP_H
|
||||
|
||||
#include "eficompiler.h"
|
||||
#include "efisetjmp_arch.h"
|
||||
|
||||
extern UINTN setjmp(jmp_buf *env);
|
||||
extern VOID longjmp(jmp_buf *env, UINTN value);
|
||||
extern UINTN setjmp(jmp_buf *env) __attribute__((returns_twice));
|
||||
extern VOID longjmp(jmp_buf *env, UINTN value) __attribute__((noreturn));
|
||||
|
||||
#endif /* GNU_EFI_SETJMP_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user