1
0
mirror of https://git.tukaani.org/xz.git synced 2025-11-14 12:14:33 +00:00

xz: Silence a compiler warning when signals_block_count is unused

Move the static variable signals_block_count to the #ifndef block
that already has the functions that need the variable.
This commit is contained in:
Lasse Collin 2025-11-02 19:40:55 +02:00
parent beca015891
commit 68d1591187
No known key found for this signature in database
GPG Key ID: 38EE757D69184620

View File

@ -31,9 +31,6 @@ static sigset_t hooked_signals;
/// signals_unblock() are called before signals_init() has been called. /// signals_unblock() are called before signals_init() has been called.
static bool signals_are_initialized = false; static bool signals_are_initialized = false;
/// signals_block() and signals_unblock() can be called recursively.
static size_t signals_block_count = 0;
static void static void
signal_handler(int sig) signal_handler(int sig)
@ -137,6 +134,10 @@ signals_init(void)
#ifndef __VMS #ifndef __VMS
/// signals_block() and signals_unblock() can be called recursively.
static size_t signals_block_count = 0;
extern void extern void
signals_block(void) signals_block(void)
{ {