diff --git a/libs/pika/thread_support/src/thread_name.cpp b/libs/pika/thread_support/src/thread_name.cpp index 57af6c140..05047f10b 100644 --- a/libs/pika/thread_support/src/thread_name.cpp +++ b/libs/pika/thread_support/src/thread_name.cpp @@ -9,6 +9,7 @@ #include #include +#include #include @@ -85,7 +86,8 @@ namespace pika::detail { "attempting to set name \"{}\" for thread {}", rc, pthread_name, pthread_self())); } - +# else + PIKA_UNUSED(short_name); # endif } #endif