This patch avoids the gcc warning ../../libX11-1.1.5/src/StBytes.c:54: warning: passing arg 3 of `XRotateWindowProperties' discards qualifiers from pointer target type There is a comment stating that this is safe. Nevertheless the compiler warning should be avoided. Unless: you want the warning as a reminder to handle this in a better way, e.g., by declaring the third argument of XRotateWindowProperties as 'const Atom *' (or '_Xconst Atom *'). diff -ur libX11-1.1.5.orig/src/StBytes.c libX11-1.1.5/src/StBytes.c --- libX11-1.1.5.orig/src/StBytes.c 2008-09-04 23:35:13.000000000 +0200 +++ libX11-1.1.5/src/StBytes.c 2008-10-07 15:46:29.000000000 +0200 @@ -51,7 +51,7 @@ /* XRotateWindowProperties wants a non-const Atom*, but it doesn't * modify it, so this is safe. */ - return XRotateWindowProperties(dpy, RootWindow(dpy, 0), n_to_atom, 8, rotate); + return XRotateWindowProperties(dpy, RootWindow(dpy, 0), (Atom *)n_to_atom, 8, rotate); } char *XFetchBuffer (