1
0
mirror of https://git.tukaani.org/xz.git synced 2026-10-31 03:14:56 +00:00

xz: Silence a warning from Clang 23 when threading is disabled

src/xz/hardware.c:29:13: warning: variable 'use_mt_mode_with_one_thread' set but not used [-Wunused-but-set-global]
   29 | static bool use_mt_mode_with_one_thread = false;
      |             ^
This commit is contained in:
Lasse Collin 2026-10-28 10:11:50 +02:00
parent 299eb5c3f5
commit 5a0dbb19c6
No known key found for this signature in database
GPG Key ID: 38EE757D69184620

View File

@ -15,6 +15,10 @@
# include <sys/resource.h>
#endif
#if !defined(MYTHREAD_ENABLED) && defined(__clang__) && __clang_major__ >= 23
# pragma GCC diagnostic ignored "-Wunused-but-set-global"
#endif
/// Maximum number of worker threads. This can be set with
/// the --threads=NUM command line option.