1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-25 06:50:46 -08:00

* dispextern.h (struct glyph): Make u.img_id int, not unsigned.

It's always given int values and used as an int.  This suppresses
a gcc "comparison of unsigned expression >= 0" warning in some
configurations.
This commit is contained in:
Paul Eggert 2011-02-26 18:41:48 -08:00
parent 27786b2f70
commit fdb0b28bf6
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,10 @@
2011-02-27 Paul Eggert <eggert@cs.ucla.edu>
* dispextern.h (struct glyph): Make u.img_id int, not unsigned.
It's always given int values and used as an int. This suppresses
a gcc "comparison of unsigned expression >= 0" warning in some
configurations.
* dispnew.c: Rename locals to avoid shadowing.
(update_text_area, scrolling_window, update_frame_1): Rename locals.

View file

@ -431,7 +431,7 @@ struct glyph
} cmp;
/* Image ID for image glyphs (type == IMAGE_GLYPH). */
unsigned img_id;
int img_id;
/* Sub-structure for type == STRETCH_GLYPH. */
struct