mirror of
https://git.tukaani.org/xz.git
synced 2025-11-14 04:04: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:
parent
beca015891
commit
68d1591187
@ -31,9 +31,6 @@ static sigset_t hooked_signals;
|
||||
/// signals_unblock() are called before signals_init() has been called.
|
||||
static bool signals_are_initialized = false;
|
||||
|
||||
/// signals_block() and signals_unblock() can be called recursively.
|
||||
static size_t signals_block_count = 0;
|
||||
|
||||
|
||||
static void
|
||||
signal_handler(int sig)
|
||||
@ -137,6 +134,10 @@ signals_init(void)
|
||||
|
||||
|
||||
#ifndef __VMS
|
||||
/// signals_block() and signals_unblock() can be called recursively.
|
||||
static size_t signals_block_count = 0;
|
||||
|
||||
|
||||
extern void
|
||||
signals_block(void)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user