[Pkg-wmaker-commits] [wmgtemp] 09/10: wmgtemp: Use 'char' instead of 'unsigned char' for bit mask.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Feb 2 14:18:41 UTC 2017


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

dtorrance-guest pushed a commit to branch upstream
in repository wmgtemp.

commit 6975d204f04a43fe1b3b8f6ee2ea322b5df0262a
Author: Doug Torrance <dtorrance at piedmont.edu>
Date:   Wed Feb 1 21:52:03 2017 -0500

    wmgtemp: Use 'char' instead of 'unsigned char' for bit mask.
    
    Avoids compiler warning:
    
        src/wmgtemp.c: In function ‘main’:
        src/wmgtemp.c:202:50: warning: pointer targets in passing argument 4 of ‘openXwindow’ differ in signedness [-Wpointer-sign]
           openXwindow(argc, argv, wmgtemp_interface_xpm, wmgtemp_interface_mask_bits,
                                                      ^
        In file included from src/wmgtemp.c:15:0:
        /usr/include/libdockapp/wmgeneral.h:78:6: note: expected ‘char *’ but argument is of type ‘unsigned char *’
         void openXwindow(int argc, char *argv[], char **, char *, int, int);
              ^
---
 src/wmgtemp-interface-mask.xbm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wmgtemp-interface-mask.xbm b/src/wmgtemp-interface-mask.xbm
index aadcedd..6d21cf4 100644
--- a/src/wmgtemp-interface-mask.xbm
+++ b/src/wmgtemp-interface-mask.xbm
@@ -1,7 +1,7 @@
 /* Created with The GIMP */
 #define wmgtemp_interface_mask_width 62
 #define wmgtemp_interface_mask_height 62
-static unsigned char wmgtemp_interface_mask_bits[] = {
+static char wmgtemp_interface_mask_bits[] = {
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff,
    0xff, 0xff, 0xff, 0x3f, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f,
    0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x3f, 0xfe, 0xff, 0xff, 0xff,

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



More information about the Pkg-wmaker-commits mailing list