diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-03-28 10:39:49 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-03-28 10:39:49 -0400 |
commit | 36a20c1a27af1aa64791a2528c371d39ba33939f (patch) | |
tree | 61a7f16ccad15003b19b134cadacf9e55b20844f /shmexport.c | |
parent | d87282aabf65b3def0fb2d2004f03a207bbbeb5b (diff) | |
download | gpsd-36a20c1a27af1aa64791a2528c371d39ba33939f.tar.gz |
Improve the barrier code and beat GCC harder about not reordering operations.
Diffstat (limited to 'shmexport.c')
-rw-r--r-- | shmexport.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; /* |