From 85a9ea3bac5bd026836c3e6bad37c42f1161fca7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Tue, 29 Jun 2010 17:24:15 +0300 Subject: [PATCH] Atom: use volatile keyword --- include/vlc_atomic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/vlc_atomic.h b/include/vlc_atomic.h index 2b0ff88e67..9370fbc899 100644 --- a/include/vlc_atomic.h +++ b/include/vlc_atomic.h @@ -31,8 +31,8 @@ */ typedef union { - uintptr_t u; - intptr_t s; + volatile uintptr_t u; + volatile intptr_t s; } vlc_atomic_t; /* All functions return the atom value _after_ the operation. */ -- 2.39.5