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:
parent
299eb5c3f5
commit
5a0dbb19c6
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user