From: Paul Eggert Date: Sun, 23 Jan 2011 04:33:12 +0000 (-0800) Subject: * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash X-Git-Tag: emacs-pretest-24.0.90~104^2~618^2~1322^2~152^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f77fabaf6bc1296631b1a4bcdf363721e19a3ac4;p=emacs.git * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash when calling XpmCreatePixmapFromData. --- diff --git a/src/ChangeLog b/src/ChangeLog index 0c5c98eac2e..2e9e80d938d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2011-01-23 Paul Eggert + * 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), diff --git a/src/image.c b/src/image.c index 542968d2a76..1cf16f6eeb1 100644 --- a/src/image.c +++ b/src/image.c @@ -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);