[evince] ev-job-scheduler: Fix running_job volatile type
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] ev-job-scheduler: Fix running_job volatile type
- Date: Thu, 13 Feb 2020 17:37:18 +0000 (UTC)
commit bafffb810cdf48b4377fb693349c5d844553c7e2
Author: Jason Crain <jason inspiresomeone us>
Date: Thu Feb 13 00:11:14 2020 -0700
ev-job-scheduler: Fix running_job volatile type
This is currently defined as "volatile EvJob *", a pointer to a volatile
EvJob object. Change it so it is "EvJob * volatile", a volatile pointer
to a EvJob object. This fixes a compiler warning about the
g_atomic_pointer_get() macro discarding the volatile qualifier.
libview/ev-job-scheduler.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libview/ev-job-scheduler.c b/libview/ev-job-scheduler.c
index d261b804..c91dc951 100644
--- a/libview/ev-job-scheduler.c
+++ b/libview/ev-job-scheduler.c
@@ -30,7 +30,7 @@ typedef struct _EvSchedulerJob {
G_LOCK_DEFINE_STATIC(job_list);
static GSList *job_list = NULL;
-static volatile EvJob *running_job = NULL;
+static EvJob * volatile running_job = NULL;
static gpointer ev_job_thread_proxy (gpointer data);
static void ev_scheduler_thread_job_cancelled (EvSchedulerJob *job,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]