summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-12 19:33:48 +0100
committerinfirit <[email protected]>2014-11-12 20:36:50 +0100
commit109f0c7975cfe640071fbedb733fc157a0357985 (patch)
tree1c159e96c81217309db2d8b4699c02fd49609634 /src/core
parent7116f6e03be3a709062685a47a982554201899aa (diff)
downloadmarco-109f0c7975cfe640071fbedb733fc157a0357985.tar.bz2
marco-109f0c7975cfe640071fbedb733fc157a0357985.tar.xz
Work around usage of XPointer
XLib has historically used "char*" for "generic pointer" but compliers rightly complain when casting this to a structure. Work around this by casting to void * and letting the implicit conversion to a structure type take effect. Based on metacity commit: 687376bb549b3d60ba848c9d4105fe41087f3a77 From: Colin Walters <[email protected]> Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=611644
Diffstat (limited to 'src/core')
-rw-r--r--src/core/async-getprop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/async-getprop.c b/src/core/async-getprop.c
index e9be58dd..d968ca2a 100644
--- a/src/core/async-getprop.c
+++ b/src/core/async-getprop.c
@@ -215,7 +215,7 @@ async_get_property_handler (Display *dpy,
AgPerDisplayData *dd;
int bytes_read;
- dd = (AgPerDisplayData*) data;
+ dd = (void*) data;
#if 0
printf ("%s: seeing request seq %ld buflen %d\n", __FUNCTION__,