[libc-commits] [libc] [libc] fix -Wmissing-attributes in setjmp (PR #112415)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Tue Oct 15 13:03:19 PDT 2024


================
@@ -13,9 +13,13 @@
 // public header setjmp.h which is also included. here.
 #include "hdr/types/jmp_buf.h"
 #include "src/__support/macros/config.h"
+#include "src/__support/macros/properties/compiler.h"
 
 namespace LIBC_NAMESPACE_DECL {
 
+#ifdef LIBC_COMPILER_IS_GCC
+[[gnu::nothrow]]
----------------
nickdesaulniers wrote:

done in https://github.com/llvm/llvm-project/pull/112415/commits/cef25394b9e09e84f3a0c484f5fc343d61581063

https://github.com/llvm/llvm-project/pull/112415


More information about the libc-commits mailing list