Skip to content

Commit 3b19f8b

Browse files
committed
add attribute to setjmp_impl.h
1 parent 5cc3187 commit 3b19f8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libc/src/setjmp/setjmp_impl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ namespace LIBC_NAMESPACE_DECL {
2929
#ifdef LIBC_COMPILER_IS_GCC
3030
[[gnu::nothrow]]
3131
#endif
32-
int setjmp(jmp_buf buf);
32+
[[gnu::returns_twice]] int
33+
setjmp(jmp_buf buf);
3334

3435
} // namespace LIBC_NAMESPACE_DECL
3536

0 commit comments

Comments
 (0)