From 1c8f3c67c39a5425efdd46075a988c9d0ce87b2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Mi=C4=85sko?= Date: Thu, 1 Nov 2018 00:00:00 +0000 Subject: [PATCH] gmain: Remove redundant volatile from unix_signal_refcount Acesss to unix_signal_refcount is protected by unix_signal_lock. --- glib/gmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/gmain.c b/glib/gmain.c index 89dc57032..e1a680433 100644 --- a/glib/gmain.c +++ b/glib/gmain.c @@ -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;