# HG changeset patch # User Stefan Monnier # Date 1053884833 0 # Node ID ed40623b1ca613edd516e9f6fb98e907ea783e17 # Parent 29a68043c861e98340ea8ba07b847dd5e04a6dc1 (build_scalable_font_name): Remove `unused var pixel_size' warning. diff -r 29a68043c861 -r ed40623b1ca6 src/xfaces.c --- a/src/xfaces.c Sun May 25 17:46:34 2003 +0000 +++ b/src/xfaces.c Sun May 25 17:47:13 2003 +0000 @@ -6084,7 +6084,7 @@ struct font_name *font; int specified_pt; { - char point_size[20], pixel_size[20]; + char pixel_size[20]; int pixel_value; double resy = FRAME_X_DISPLAY_INFO (f)->resy; double pt; @@ -6108,10 +6108,12 @@ /* We should keep POINT_SIZE 0. Otherwise, X server can't open a font of the specified PIXEL_SIZE. */ #if 0 - /* Set point size of the font. */ - sprintf (point_size, "%d", (int) pt); - font->fields[XLFD_POINT_SIZE] = point_size; - font->numeric[XLFD_POINT_SIZE] = pt; + { /* Set point size of the font. */ + char point_size[20]; + sprintf (point_size, "%d", (int) pt); + font->fields[XLFD_POINT_SIZE] = point_size; + font->numeric[XLFD_POINT_SIZE] = pt; + } #endif /* Set pixel size. */