]> code.delx.au - gnu-emacs/commit
Pacify --enable-gcc-warnings --with-cairo
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 23 Jan 2016 09:02:00 +0000 (01:02 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 23 Jan 2016 09:04:09 +0000 (01:04 -0800)
commitc07bddd69dab6252ce1e8a283a023d693b7d7ad6
treeb5d75d39e8e1433189fe06d129d7285e94e263af
parent035bd8159fe5bcea15eacc8a23ab54f4bc3b6f17
Pacify --enable-gcc-warnings --with-cairo

Problem reported by Alexander Kuleshov in:
http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg01289.html
* src/gtkutil.c (xg_get_page_setup):
Use switch rather than if-then-else.
* src/image.c (COLOR_TABLE_SUPPORT):
Define directly rather than via #define and optional later #undef.
(lookup_rgb_color) [USE_CAIRO && ENABLE_CHECKING]:
Crash when the pixel is undefined, as there is a genuine bug
here (Bug#22442).
* src/image.c (tiff_load, gif_load, svg_load_image)
(x_kill_gs_process) [USE_CAIRO]:
* src/xterm.c (x_draw_fringe_bitmap) [USE_CAIRO]:
Omit unused locals, or move them to where they’re needed.
(x_clear_area1): Now ATTRIBUTE_UNUSED.
src/gtkutil.c
src/image.c
src/xterm.c