aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2004-11-09 13:26:01 +0000
committerKim F. Storm2004-11-09 13:26:01 +0000
commit0162fa4ea6d03373d08d778ebd9731c3c2c4a222 (patch)
treeec16e84680103ce6e9c7d18710d687f326da588f
parent44455197d9af613b377f15da7e3ac35c712640cd (diff)
downloademacs-0162fa4ea6d03373d08d778ebd9731c3c2c4a222.tar.gz
emacs-0162fa4ea6d03373d08d778ebd9731c3c2c4a222.zip
(produce_image_glyph): Remove unused variable 'face_ascent'.
(pint2hrstr): Add extra braces to silence compiler.
-rw-r--r--src/xdisp.c44
1 files changed, 24 insertions, 20 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index c2d903d347d..e953771b1cf 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -16041,27 +16041,31 @@ pint2hrstr (buf, width, d)
16041 { 16041 {
16042 tenths = remainder / 100; 16042 tenths = remainder / 100;
16043 if (50 <= remainder % 100) 16043 if (50 <= remainder % 100)
16044 if (tenths < 9) 16044 {
16045 tenths++; 16045 if (tenths < 9)
16046 else 16046 tenths++;
16047 { 16047 else
16048 quotient++; 16048 {
16049 if (quotient == 10) 16049 quotient++;
16050 tenths = -1; 16050 if (quotient == 10)
16051 else 16051 tenths = -1;
16052 tenths = 0; 16052 else
16053 } 16053 tenths = 0;
16054 }
16055 }
16054 } 16056 }
16055 else 16057 else
16056 if (500 <= remainder) 16058 if (500 <= remainder)
16057 if (quotient < 999) 16059 {
16058 quotient++; 16060 if (quotient < 999)
16059 else 16061 quotient++;
16060 { 16062 else
16061 quotient = 1; 16063 {
16062 exponent++; 16064 quotient = 1;
16063 tenths = 0; 16065 exponent++;
16064 } 16066 tenths = 0;
16067 }
16068 }
16065 } 16069 }
16066 16070
16067 /* Calculate the LENGTH of QUOTIENT.TENTHS as a string. */ 16071 /* Calculate the LENGTH of QUOTIENT.TENTHS as a string. */
@@ -18348,7 +18352,7 @@ produce_image_glyph (it)
18348{ 18352{
18349 struct image *img; 18353 struct image *img;
18350 struct face *face; 18354 struct face *face;
18351 int face_ascent, glyph_ascent; 18355 int glyph_ascent;
18352 struct glyph_slice slice; 18356 struct glyph_slice slice;
18353 18357
18354 xassert (it->what == IT_IMAGE); 18358 xassert (it->what == IT_IMAGE);
@@ -18431,7 +18435,7 @@ produce_image_glyph (it)
18431 18435
18432#if 0 /* this breaks image tiling */ 18436#if 0 /* this breaks image tiling */
18433 /* If this glyph is alone on the last line, adjust it.ascent to minimum row ascent. */ 18437 /* If this glyph is alone on the last line, adjust it.ascent to minimum row ascent. */
18434 face_ascent = face->font ? FONT_BASE (face->font) : FRAME_BASELINE_OFFSET (it->f); 18438 int face_ascent = face->font ? FONT_BASE (face->font) : FRAME_BASELINE_OFFSET (it->f);
18435 if (face_ascent > it->ascent) 18439 if (face_ascent > it->ascent)
18436 it->ascent = it->phys_ascent = face_ascent; 18440 it->ascent = it->phys_ascent = face_ascent;
18437#endif 18441#endif