From 65d32cd8fb71089a2d627cf15708701446dcffda Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Sat, 9 Jun 2007 18:09:37 +0000 Subject: [PATCH] Propagate volatile qualifier to make gcc4.2 happy. --- sys/kern/kern_mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index 2937ce79ca8a..a36a2ed7c9f4 100644 --- a/sys/kern/kern_mutex.c +++ b/sys/kern/kern_mutex.c @@ -530,7 +530,7 @@ thread_lock_unblock(struct thread *td, struct mtx *new) { mtx_assert(new, MA_OWNED); MPASS(td->td_lock == &blocked_lock); - atomic_store_rel_ptr((void *)&td->td_lock, (uintptr_t)new); + atomic_store_rel_ptr((volatile void *)&td->td_lock, (uintptr_t)new); spinlock_exit(); }