aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2003-05-25 17:47:13 +0000
committerStefan Monnier2003-05-25 17:47:13 +0000
commita72551529b9dd53c6e39ef0ebd772da336296dfa (patch)
tree9909d52d9d0dd14717ae11b7632ed0e17984c3a9 /src
parent8972820c930609390ad70db7e20adfbf2a447b7f (diff)
downloademacs-a72551529b9dd53c6e39ef0ebd772da336296dfa.tar.gz
emacs-a72551529b9dd53c6e39ef0ebd772da336296dfa.zip
(build_scalable_font_name): Remove `unused var pixel_size' warning.
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index 754cf867812..a48961207e4 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -6084,7 +6084,7 @@ build_scalable_font_name (f, font, specified_pt)
6084 struct font_name *font; 6084 struct font_name *font;
6085 int specified_pt; 6085 int specified_pt;
6086{ 6086{
6087 char point_size[20], pixel_size[20]; 6087 char pixel_size[20];
6088 int pixel_value; 6088 int pixel_value;
6089 double resy = FRAME_X_DISPLAY_INFO (f)->resy; 6089 double resy = FRAME_X_DISPLAY_INFO (f)->resy;
6090 double pt; 6090 double pt;
@@ -6108,10 +6108,12 @@ build_scalable_font_name (f, font, specified_pt)
6108 /* We should keep POINT_SIZE 0. Otherwise, X server can't open a 6108 /* We should keep POINT_SIZE 0. Otherwise, X server can't open a
6109 font of the specified PIXEL_SIZE. */ 6109 font of the specified PIXEL_SIZE. */
6110#if 0 6110#if 0
6111 /* Set point size of the font. */ 6111 { /* Set point size of the font. */
6112 sprintf (point_size, "%d", (int) pt); 6112 char point_size[20];
6113 font->fields[XLFD_POINT_SIZE] = point_size; 6113 sprintf (point_size, "%d", (int) pt);
6114 font->numeric[XLFD_POINT_SIZE] = pt; 6114 font->fields[XLFD_POINT_SIZE] = point_size;
6115 font->numeric[XLFD_POINT_SIZE] = pt;
6116 }
6115#endif 6117#endif
6116 6118
6117 /* Set pixel size. */ 6119 /* Set pixel size. */