mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
gio: Drop unnecessary volatile qualifiers from internal variables
These variables were already (correctly) accessed atomically. The `volatile` qualifier doesn’t help with that. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #600
This commit is contained in:
@@ -56,7 +56,7 @@ typedef enum
|
||||
|
||||
typedef struct
|
||||
{
|
||||
volatile gint ref_count;
|
||||
gint ref_count; /* (atomic) */
|
||||
guint id;
|
||||
gchar *name;
|
||||
GBusNameWatcherFlags flags;
|
||||
@@ -78,7 +78,7 @@ typedef struct
|
||||
} Client;
|
||||
|
||||
/* Must be accessed atomically. */
|
||||
static volatile guint next_global_id = 1;
|
||||
static guint next_global_id = 1; /* (atomic) */
|
||||
|
||||
/* Must be accessed with @lock held. */
|
||||
static GHashTable *map_id_to_client = NULL;
|
||||
|
Reference in New Issue
Block a user