diff options
author | Philip Withnall <pwithnall@endlessos.org> | 2020-11-11 18:30:36 +0000 |
---|---|---|
committer | Philip Withnall <pwithnall@endlessos.org> | 2020-11-20 14:40:19 +0000 |
commit | 7cdb68713c1863a27ad82d801756ec74097e8e87 (patch) | |
tree | ee9776351b2a0d6003c5c1c2c261d17531b4d35e /tests/gobject/performance-threaded.c | |
parent | e4e88688a0722237effc56cc21438d0c8e82de88 (diff) | |
download | glib-7cdb68713c1863a27ad82d801756ec74097e8e87.tar.gz |
tests: Drop unnecessary volatile qualifiers from tests
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
Diffstat (limited to 'tests/gobject/performance-threaded.c')
-rw-r--r-- | tests/gobject/performance-threaded.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gobject/performance-threaded.c b/tests/gobject/performance-threaded.c index 30ea5bd80..c98541d66 100644 --- a/tests/gobject/performance-threaded.c +++ b/tests/gobject/performance-threaded.c @@ -52,7 +52,7 @@ static GType liststore_interfaces[6]; static gpointer register_types (void) { - static volatile gsize inited = 0; + static gsize inited = 0; if (g_once_init_enter (&inited)) { liststore_interfaces[0] = simple_register_class ("GtkBuildable", G_TYPE_INTERFACE, 0); |