[evince/wip/chpe/volatile] libview: Fix volatile misuse




commit 6d5c94ee998b8edf9a8f421c108fc39e18363e7e
Author: Christian Persch <chpe src gnome org>
Date:   Wed Dec 1 21:31:36 2021 +0100

    libview: Fix volatile misuse
    
    Remove an incorrect/extraneous 'volatile', fixing a build warning about
    incompatible pointer types with g_atomic_pointer_get().

 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 8572ea6d3..b99978f67 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 EvJob * volatile running_job = NULL;
+static EvJob *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]