[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg-devel
Subject:    different sign warning in libX11
From:       Thomas Klausner <wiz () NetBSD ! org>
Date:       2014-03-30 14:16:07
Message-ID: 20140330141607.GC18567 () danbala ! tuwien ! ac ! at
[Download RAW message or body]

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
_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic