From 36a20c1a27af1aa64791a2528c371d39ba33939f Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 28 Mar 2011 10:39:49 -0400 Subject: Improve the barrier code and beat GCC harder about not reordering operations. --- shmexport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shmexport.c') diff --git a/shmexport.c b/shmexport.c index eaf8ddf6..bcd78821 100644 --- a/shmexport.c +++ b/shmexport.c @@ -63,7 +63,7 @@ void shm_update(struct gps_context_t *context, struct gps_data_t *gpsdata) if (context->shmexport != NULL) { static int tick; - struct shmexport_t *shared = (struct shmexport_t *)context->shmexport; + volatile struct shmexport_t *shared = (struct shmexport_t *)context->shmexport; ++tick; /* -- cgit v1.2.1