From 5ed93b107550cc10fda7ae187de65da1a4b24d87 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Mon, 27 Mar 2006 12:23:23 +0000 Subject: [PATCH] eliminate a warning --- ghc/includes/SMP.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc/includes/SMP.h b/ghc/includes/SMP.h index 93af9df..5974c96 100644 --- a/ghc/includes/SMP.h +++ b/ghc/includes/SMP.h @@ -121,7 +121,7 @@ lockClosure(StgClosure *p) do { nat i = 0; do { - info = xchg((P_)&p->header.info, (W_)&stg_WHITEHOLE_info); + info = xchg((P_)(void *)&p->header.info, (W_)&stg_WHITEHOLE_info); if (info != (W_)&stg_WHITEHOLE_info) return (StgInfoTable *)info; } while (++i < SPIN_COUNT); yieldThread(); -- 1.7.10.4