Make Cairo safer for --enable-gcc-warnings
commitfccd7d3c0606080c047e16d94490d83fc68dabde
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 1 Dec 2016 08:17:20 +0000 (1 00:17 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 1 Dec 2016 08:19:06 +0000 (1 00:19 -0800)
tree2ed9f725c3c5b49293e7dd357a1fa1f5019fe6cf
parent319bafc9b28bd5bffb92a97a8ab53b9a3b97e6fd
Make Cairo safer for --enable-gcc-warnings

* src/image.c (xcolor_to_argb32, pbm_load, jpeg_load_body, gif_load):
Avoid overflow warnings about ‘0xff << 24’.
(xpm_load, gif_load): Avoid unnecessary casts.
(gif_load): Fewer ifdefs.
src/image.c