[Pkg-wmaker-commits] [wmload] 13/58: wmload: Pass XCreateBitmapFromData a pointer to char as expected.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 23:36:18 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmload.

commit 665e9704bd2466c89293a5565ac4ca639eda9d5d
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Tue Apr 7 02:45:13 2015 -0500

    wmload: Pass XCreateBitmapFromData a pointer to char as expected.
    
    Previously, a pointer to an unsigned char was passed, causing a "pointer
    targets differ in signedness [-Wpointer-sign]" warning.
---
 wmload.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wmload.c b/wmload.c
index a7743ce..6e6199f 100644
--- a/wmload.c
+++ b/wmload.c
@@ -218,7 +218,7 @@ int main(int argc,char *argv[])
   NormalGC = XCreateGC(dpy, Root, gcm, &gcv);  
 
   if (ONLYSHAPE) { /* try to make shaped window here */
-    pixmask = XCreateBitmapFromData(dpy, win, mask2_bits, mask2_width, 
+    pixmask = XCreateBitmapFromData(dpy, win, (char *)mask2_bits, mask2_width,
 				    mask2_height);
     XShapeCombineMask(dpy, win, ShapeBounding, 0, 0, pixmask, ShapeSet);
     XShapeCombineMask(dpy, iconwin, ShapeBounding, 0, 0, pixmask, ShapeSet);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmload.git



More information about the Pkg-wmaker-commits mailing list