aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorPaul Eggert2013-03-23 19:40:51 -0700
committerPaul Eggert2013-03-23 19:40:51 -0700
commita9ebfa0b3eb23056f523742e53ce79279cae1bd0 (patch)
treeedb8a5c891743c7fa8ca2839903b3283e6c6bb71 /src/image.c
parentf8ce376ec852149b64afa282860ec778a4fec328 (diff)
downloademacs-a9ebfa0b3eb23056f523742e53ce79279cae1bd0.tar.gz
emacs-a9ebfa0b3eb23056f523742e53ce79279cae1bd0.zip
Static checking by GCC 4.8-20130319.
* image.c (gif_load): Assume pass < 3 to pacify GCC. * process.c (Fset_process_datagram_address) (Fmake_network_process): Check get_lisp_to_sockaddr_size return value. * xdisp.c (get_char_face_and_encoding): (get_glyph_face_and_encoding): Ensure that *CHAR2B is initialized. (get_glyph_face_and_encoding): Prepare face before possibly using it. (get_per_char_metric): Don't use CHAR2B if it might not be initialized.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/image.c b/src/image.c
index 3eec8b6c13d..21f486176df 100644
--- a/src/image.c
+++ b/src/image.c
@@ -7373,11 +7373,10 @@ gif_load (struct frame *f, struct image *img)
7373 y < subimg_height; 7373 y < subimg_height;
7374 y++, row += interlace_increment[pass]) 7374 y++, row += interlace_increment[pass])
7375 { 7375 {
7376 if (row >= subimg_height) 7376 while (subimg_height <= row)
7377 { 7377 {
7378 lint_assume (pass < 3);
7378 row = interlace_start[++pass]; 7379 row = interlace_start[++pass];
7379 while (row >= subimg_height)
7380 row = interlace_start[++pass];
7381 } 7380 }
7382 7381
7383 for (x = 0; x < subimg_width; x++) 7382 for (x = 0; x < subimg_width; x++)