]> code.delx.au - gnu-emacs/commitdiff
* image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 23 Jan 2011 04:33:12 +0000 (20:33 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 23 Jan 2011 04:33:12 +0000 (20:33 -0800)
when calling XpmCreatePixmapFromData.

src/ChangeLog
src/image.c

index 0c5c98eac2ebf542727994fe90f173baa1854259..2e9e80d938d34cb9a2245f2dc9ec6f3c70c36c3a 100644 (file)
@@ -1,5 +1,8 @@
 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
+       when calling XpmCreatePixmapFromData.
+
        Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
        * lisp.h (SSDATA): New macro.
        All uses of (char *) SDATA (x) replaced with SSDATA (x),
index 542968d2a76ff503c9d43149d630b006330b3b09..1cf16f6eeb13a81bd9c21a2ff42011c6140b32a9 100644 (file)
@@ -3334,7 +3334,7 @@ x_create_bitmap_from_xpm_data (struct frame *f, const char **bits)
   attrs.valuemask |= XpmColormap;
 
   rc = XpmCreatePixmapFromData (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
-                               bits, &bitmap, &mask, &attrs);
+                               (char **) bits, &bitmap, &mask, &attrs);
   if (rc != XpmSuccess)
     {
       XpmFreeAttributes (&attrs);