[gnome-shell/wip/carlosg/volatile-warnings: 1/2] calendar-server: Drop "volatile" from g_once_init_enter() sentinels
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/volatile-warnings: 1/2] calendar-server: Drop "volatile" from g_once_init_enter() sentinels
- Date: Tue, 16 Mar 2021 20:46:54 +0000 (UTC)
commit b7b8848171c3ea157985a41bd3f5da99f3cfc052
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Mar 16 21:43:35 2021 +0100
calendar-server: Drop "volatile" from g_once_init_enter() sentinels
As documented in g_once_init_enter(): "While @location has a volatile qualifier,
this is a historical artifact and the pointer passed to it should not be
volatile.". And effectively this now warns with modern glibc.
Drop this from our logging function.
src/calendar-server/calendar-sources.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/calendar-server/calendar-sources.c b/src/calendar-server/calendar-sources.c
index 7cca573a81..6006e93c0f 100644
--- a/src/calendar-server/calendar-sources.c
+++ b/src/calendar-server/calendar-sources.c
@@ -478,7 +478,7 @@ print_debug (const gchar *format,
g_autofree char *timestamp = NULL;
va_list ap;
g_autoptr (GDateTime) now = NULL;
- static volatile gsize once_init_value = 0;
+ static gsize once_init_value = 0;
static gboolean show_debug = FALSE;
static guint pid = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]