diff --git a/Userland/Libraries/LibC/pthread.cpp b/Userland/Libraries/LibC/pthread.cpp index b23cb4531e6..a95f8ddd6a4 100644 --- a/Userland/Libraries/LibC/pthread.cpp +++ b/Userland/Libraries/LibC/pthread.cpp @@ -51,7 +51,7 @@ struct CleanupHandler { static thread_local SinglyLinkedList s_cleanup_handlers; -static __thread bool s_pending_cancellation = false; +[[maybe_unused]] static __thread bool s_pending_cancellation = false; [[gnu::weak]] extern ErrorOr __create_new_tls_region() asm("__create_new_tls_region"); [[gnu::weak]] extern ErrorOr __free_tls_region(FlatPtr thread_pointer) asm("__free_tls_region");