gmain: Remove redundant volatile from unix_signal_refcount

Acesss to unix_signal_refcount is protected by unix_signal_lock.
This commit is contained in:
Tomasz Miąsko 2018-11-01 00:00:00 +00:00
parent e0148985f3
commit 1c8f3c67c3

View File

@ -462,10 +462,10 @@ static volatile sig_atomic_t any_unix_signal_pending;
static volatile int unix_signal_pending[NSIG];
static volatile int any_unix_signal_pending;
#endif
static volatile guint unix_signal_refcount[NSIG];
/* Guards all the data below */
G_LOCK_DEFINE_STATIC (unix_signal_lock);
static guint unix_signal_refcount[NSIG];
static GSList *unix_signal_watches;
static GSList *unix_child_watches;