[PATCH] Cast void* to pointer* to appease some compilers.

James Jones jajones at nvidia.com
Fri Jun 25 17:51:42 PDT 2010

Could someone please review/apply this xserver patch?  I'd like to get it in before 1.9 final.  It's trivial.


On 6/18/10 5:28 PM, "James Jones" <jajones at nvidia.com> wrote:

When this privates.h is included in C++ builds, the compiler
complains about implicitly casting void* to void**.  This small
patch fixes that up.

Signed-off-by: James Jones <jajones at nvidia.com>
 include/privates.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/privates.h b/include/privates.h
index 4fed7d0..5ba9358 100644
--- a/include/privates.h
+++ b/include/privates.h
@@ -177,7 +177,7 @@ static inline pointer *
 dixLookupPrivateAddr(PrivatePtr *privates, const DevPrivateKey key)
     assert (key->size == 0);
-    return dixGetPrivateAddr(privates, key);
+    return (pointer *)dixGetPrivateAddr(privates, key);


This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100625/cb39094f/attachment.htm>

More information about the xorg-devel mailing list