Hi!

clang's unhappy:

src/ModMap.c:86:15: error: passing 'KeyCode *' (aka 'unsigned char *') to 
parameter of type 'const char *' converts between pointers to integer types 
with different
sign [-Werror,-Wpointer-sign]
    Data(dpy, modifier_map->modifiermap, mapSize);
              ^~~~~~~~~~~~~~~~~~~~~~~~~
/archive/build/amd64.clang.20140330/usr/X11R7/include/X11/Xlibint.h:537:15: 
note: expanded from macro 'Data'
                _XSend(dpy, data, len);\
                            ^
/archive/build/amd64.clang.20140330/usr/X11R7/include/X11/Xlibint.h:923:29: 
note: passing argument to parameter here
    _Xconst char*       /* data */,
                                  ^
1 error generated.

Should I just cast it to (char *) or is there a better solution?
 Thomas
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to