aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorJuanma Barranquero2011-10-27 02:59:21 +0200
committerJuanma Barranquero2011-10-27 02:59:21 +0200
commit657d08d30a63536174fe9ec60b7f2cb8de541eb5 (patch)
tree9578294de51056cd536639580dd0dcecc2922c8d /src/image.c
parent6e724ca2c2e36dcd30803c314319b8faf8472e7d (diff)
downloademacs-657d08d30a63536174fe9ec60b7f2cb8de541eb5.tar.gz
emacs-657d08d30a63536174fe9ec60b7f2cb8de541eb5.zip
src/image.c, src/w32*.c, lib-src/emacsclient.c: Silence warnings under -Wall.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c
index ef72745a72f..14c74f10607 100644
--- a/src/image.c
+++ b/src/image.c
@@ -2015,7 +2015,7 @@ x_create_x_image_and_pixmap (struct frame *f, int width, int height, int depth,
2015 /* Bitmaps with a depth less than 16 need a palette. */ 2015 /* Bitmaps with a depth less than 16 need a palette. */
2016 /* BITMAPINFO structure already contains the first RGBQUAD. */ 2016 /* BITMAPINFO structure already contains the first RGBQUAD. */
2017 if (depth < 16) 2017 if (depth < 16)
2018 palette_colors = 1 << depth - 1; 2018 palette_colors = 1 << (depth - 1);
2019 2019
2020 *ximg = xmalloc (sizeof (XImage) + palette_colors * sizeof (RGBQUAD)); 2020 *ximg = xmalloc (sizeof (XImage) + palette_colors * sizeof (RGBQUAD));
2021 2021