Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 1 | From f4607def1695efb50eb49e0586eed0f5557935f2 Mon Sep 17 00:00:00 2001 |
| 2 | From: Philip Withnall <pwithnall@endlessos.org> |
| 3 | Date: Wed, 11 Nov 2020 18:20:37 +0000 |
| 4 | Subject: [PATCH 06/29] tests: Drop unnecessary volatile qualifiers from tests |
| 5 | MIME-Version: 1.0 |
| 6 | Content-Type: text/plain; charset=UTF-8 |
| 7 | Content-Transfer-Encoding: 8bit |
| 8 | |
| 9 | These variables were already (correctly) accessed atomically. The |
| 10 | `volatile` qualifier doesn’t help with that. |
| 11 | |
| 12 | Signed-off-by: Philip Withnall <pwithnall@endlessos.org> |
| 13 | |
| 14 | Helps: #600 |
| 15 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719] |
| 16 | --- |
| 17 | gio/tests/g-file-info.c | 2 +- |
| 18 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 19 | |
| 20 | diff --git a/gio/tests/g-file-info.c b/gio/tests/g-file-info.c |
| 21 | index 809b0ec79..1a02b5e0e 100644 |
| 22 | --- a/gio/tests/g-file-info.c |
| 23 | +++ b/gio/tests/g-file-info.c |
| 24 | @@ -221,7 +221,7 @@ test_internal_enhanced_stdio (void) |
| 25 | guint64 size_p0, alsize_p0, size_ps, alsize_ps; |
| 26 | const gchar *id_p0; |
| 27 | const gchar *id_p1; |
| 28 | - volatile guint64 time_p0; |
| 29 | + guint64 time_p0; |
| 30 | gchar *tmp_dir; |
| 31 | wchar_t *programdata_dir_w; |
| 32 | wchar_t *users_dir_w; |
| 33 | -- |
| 34 | 2.30.1 |
| 35 | |