In libX11's c8701115, atom names argument to XInternAtoms were marked as const.
This fixes the build with CFLAGS="-Wall -Werror": | CC Selection.lo | cc1: warnings being treated as errors | Selection.c: In function ‘GetPropList’: | Selection.c:191: error: passing argument 2 of ‘XInternAtoms’ from incompatible pointer type | /home/kibi/xorg-build/include/X11/Xlib.h:1549: note: expected ‘const char **’ but argument is of type ‘char **’ Signed-off-by: Cyril Brulebois <[email protected]> --- src/Selection.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/Selection.c b/src/Selection.c index 1759c02..26a84ba 100644 --- a/src/Selection.c +++ b/src/Selection.c @@ -174,7 +174,7 @@ static PropList GetPropList( { PropList sarray; Atom atoms[4]; - static char* names[] = { + static const char* names[] = { "INCR", "MULTIPLE", "TIMESTAMP", -- 1.7.2.3 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
