[PATCH 1/4] Sync: Fix warning introduced by fences
Daniel Stone
daniel at fooishbar.org
Tue Dec 28 04:54:55 PST 2010
SyncFence is castable to SyncObject.
Signed-off-by: Daniel Stone <daniel at fooishbar.org>
---
Xext/sync.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Xext/sync.c b/Xext/sync.c
index d495116..7db4dbf 100644
--- a/Xext/sync.c
+++ b/Xext/sync.c
@@ -886,8 +886,8 @@ SyncCreate(ClientPtr client, XID id, unsigned char type)
break;
case SYNC_FENCE:
resType = RTFence;
- pSync = dixAllocateObjectWithPrivates(SyncFence,
- PRIVATE_SYNC_FENCE);
+ pSync = (SyncObject *)dixAllocateObjectWithPrivates(SyncFence,
+ PRIVATE_SYNC_FENCE);
break;
default:
return NULL;
--
1.7.2.3
More information about the xorg-devel
mailing list