LibC: Mark s_pending_cancellation as [[maybe_unused]]

When compiling with _DYNAMIC_LOADER set s_pending_cancellation is not
used.
This commit is contained in:
Lucas Chollet committed 2026-05-02 20:04:32 +02:00
1 parent 8b2cf5a416
commit c4113a4e7a
1 file changed
+1 -1
+1 -1
View File
@@ -51,7 +51,7 @@ struct CleanupHandler {
static thread_local SinglyLinkedList<CleanupHandler> s_cleanup_handlers;
static __thread bool s_pending_cancellation = false;
[[maybe_unused]] static __thread bool s_pending_cancellation = false;
[[gnu::weak]] extern ErrorOr<FlatPtr> __create_new_tls_region() asm("__create_new_tls_region");
[[gnu::weak]] extern ErrorOr<void> __free_tls_region(FlatPtr thread_pointer) asm("__free_tls_region");